function uv(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gp={exports:{}},as={},yp={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ni=Symbol.for("react.element"),cv=Symbol.for("react.portal"),dv=Symbol.for("react.fragment"),fv=Symbol.for("react.strict_mode"),pv=Symbol.for("react.profiler"),hv=Symbol.for("react.provider"),mv=Symbol.for("react.context"),gv=Symbol.for("react.forward_ref"),yv=Symbol.for("react.suspense"),vv=Symbol.for("react.memo"),xv=Symbol.for("react.lazy"),Pc=Symbol.iterator;function wv(e){return e===null||typeof e!="object"?null:(e=Pc&&e[Pc]||e["@@iterator"],typeof e=="function"?e:null)}var vp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xp=Object.assign,wp={};function Sr(e,t,n){this.props=e,this.context=t,this.refs=wp,this.updater=n||vp}Sr.prototype.isReactComponent={};Sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sp(){}Sp.prototype=Sr.prototype;function Kl(e,t,n){this.props=e,this.context=t,this.refs=wp,this.updater=n||vp}var Gl=Kl.prototype=new Sp;Gl.constructor=Kl;xp(Gl,Sr.prototype);Gl.isPureReactComponent=!0;var Cc=Array.isArray,Tp=Object.prototype.hasOwnProperty,Yl={current:null},Ep={key:!0,ref:!0,__self:!0,__source:!0};function Pp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Tp.call(t,r)&&!Ep.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,re=R[z];if(0>>1;zi(_s,_))fni(Fi,_s)?(R[z]=Fi,R[fn]=_,z=fn):(R[z]=_s,R[ft]=_,z=ft);else if(fni(Fi,_))R[z]=Fi,R[fn]=_,z=fn;else break e}}return M}function i(R,M){var _=R.sortIndex-M.sortIndex;return _!==0?_:R.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=R)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function T(R){if(y=!1,g(R),!v)if(n(l)!==null)v=!0,pe(E);else{var M=n(u);M!==null&&W(T,M.startTime-R)}}function E(R,M){v=!1,y&&(y=!1,h(C),C=-1),m=!0;var _=f;try{for(g(M),d=n(l);d!==null&&(!(d.expirationTime>M)||R&&!U());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var re=z(d.expirationTime<=M);M=e.unstable_now(),typeof re=="function"?d.callback=re:d===n(l)&&r(l),g(M)}else r(l);d=n(l)}if(d!==null)var St=!0;else{var ft=n(u);ft!==null&&W(T,ft.startTime-M),St=!1}return St}finally{d=null,f=_,m=!1}}var k=!1,P=null,C=-1,L=5,b=-1;function U(){return!(e.unstable_now()-bR||125z?(R.sortIndex=_,t(u,R),n(l)===null&&R===n(u)&&(y?(h(C),C=-1):y=!0,W(T,_-z))):(R.sortIndex=re,t(l,R),v||m||(v=!0,pe(E))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var M=f;return function(){var _=f;f=M;try{return R.apply(this,arguments)}finally{f=_}}}})(Np);Rp.exports=Np;var Lv=Rp.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jv=w,He=Lv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ca=Object.prototype.hasOwnProperty,_v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ac={},Rc={};function Ov(e){return Ca.call(Rc,e)?!0:Ca.call(Ac,e)?!1:_v.test(e)?Rc[e]=!0:(Ac[e]=!0,!1)}function Dv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Iv(e,t,n,r){if(t===null||typeof t>"u"||Dv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ql=/[\-:]([a-z])/g;function ql(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ql,ql);we[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ql,ql);we[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ql,ql);we[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zl(e,t,n,r){var i=we.hasOwnProperty(t)?we[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Vv(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Vs(e.type,!1),e;case 11:return e=Vs(e.type.render,!1),e;case 1:return e=Vs(e.type,!0),e;default:return""}}function Na(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Vn:return"Portal";case ka:return"Profiler";case Jl:return"StrictMode";case Aa:return"Suspense";case Ra:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lp:return(e.displayName||"Context")+".Consumer";case Mp:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:Na(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Na(e(t))}catch{}}return null}function Fv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Na(t);case 8:return t===Jl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _p(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zv(e){var t=_p(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=zv(e))}function Op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_p(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Co(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ba(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Dp(e,t){t=t.checked,t!=null&&Zl(e,"checked",t,!1)}function Ma(e,t){Dp(e,t);var n=rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?La(e,t.type,n):t.hasOwnProperty("defaultValue")&&La(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function La(e,t,n){(t!=="number"||Co(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Br=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=$i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ai(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bv=["Webkit","ms","Moz","O"];Object.keys(Gr).forEach(function(e){Bv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gr[t]=Gr[e]})});function zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gr.hasOwnProperty(e)&&Gr[e]?(""+t).trim():t+"px"}function Bp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Uv=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oa(e,t){if(t){if(Uv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Da(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ia=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Va=null,nr=null,rr=null;function _c(e){if(e=Li(e)){if(typeof Va!="function")throw Error(A(280));var t=e.stateNode;t&&(t=fs(t),Va(e.stateNode,e.type,t))}}function Up(e){nr?rr?rr.push(e):rr=[e]:nr=e}function $p(){if(nr){var e=nr,t=rr;if(rr=nr=null,_c(e),t)for(e=0;e>>=0,e===0?32:31-(Jv(e)/e0|0)|0}var Wi=64,Hi=4194304;function Ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function No(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ur(a):(o&=s,o!==0&&(r=Ur(o)))}else s=n&~i,s!==0?r=Ur(s):o!==0&&(r=Ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ut(t),e[t]=n}function i0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xr),$c=String.fromCharCode(32),Wc=!1;function uh(e,t){switch(e){case"keyup":return L0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function _0(e,t){switch(e){case"compositionend":return ch(t);case"keypress":return t.which!==32?null:(Wc=!0,$c);case"textInput":return e=t.data,e===$c&&Wc?null:e;default:return null}}function O0(e,t){if(zn)return e==="compositionend"||!cu&&uh(e,t)?(e=ah(),fo=au=Kt=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yc(n)}}function hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(){for(var e=window,t=Co();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Co(e.document)}return t}function du(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function W0(e){var t=mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hh(n.ownerDocument.documentElement,n)){if(r!==null&&du(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Xc(n,o);var s=Xc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Bn=null,Wa=null,qr=null,Ha=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ha||Bn==null||Bn!==Co(r)||(r=Bn,"selectionStart"in r&&du(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&pi(qr,r)||(qr=r,r=Lo(Wa,"onSelect"),0Wn||(e.current=qa[Wn],qa[Wn]=null,Wn--)}function H(e,t){Wn++,qa[Wn]=e.current,e.current=t}var on={},ke=un(on),De=un(!1),kn=on;function dr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ie(e){return e=e.childContextTypes,e!=null}function _o(){Y(De),Y(ke)}function rd(e,t,n){if(ke.current!==on)throw Error(A(168));H(ke,t),H(De,n)}function Ph(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Fv(e)||"Unknown",i));return ne({},n,r)}function Oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,kn=ke.current,H(ke,e),H(De,De.current),!0}function id(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Ph(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,Y(De),Y(ke),H(ke,e)):Y(De),H(De,n)}var Ct=null,ps=!1,Zs=!1;function Ch(e){Ct===null?Ct=[e]:Ct.push(e)}function nx(e){ps=!0,Ch(e)}function cn(){if(!Zs&&Ct!==null){Zs=!0;var e=0,t=$;try{var n=Ct;for($=1;e>=s,i-=s,kt=1<<32-ut(t)+i|n<C?(L=P,P=null):L=P.sibling;var b=f(h,P,g[C],T);if(b===null){P===null&&(P=L);break}e&&P&&b.alternate===null&&t(h,P),p=o(b,p,C),k===null?E=b:k.sibling=b,k=b,P=L}if(C===g.length)return n(h,P),Z&&hn(h,C),E;if(P===null){for(;CC?(L=P,P=null):L=P.sibling;var U=f(h,P,b.value,T);if(U===null){P===null&&(P=L);break}e&&P&&U.alternate===null&&t(h,P),p=o(U,p,C),k===null?E=U:k.sibling=U,k=U,P=L}if(b.done)return n(h,P),Z&&hn(h,C),E;if(P===null){for(;!b.done;C++,b=g.next())b=d(h,b.value,T),b!==null&&(p=o(b,p,C),k===null?E=b:k.sibling=b,k=b);return Z&&hn(h,C),E}for(P=r(h,P);!b.done;C++,b=g.next())b=m(P,h,C,b.value,T),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?C:b.key),p=o(b,p,C),k===null?E=b:k.sibling=b,k=b);return e&&P.forEach(function(I){return t(h,I)}),Z&&hn(h,C),E}function x(h,p,g,T){if(typeof g=="object"&&g!==null&&g.type===Fn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Bi:e:{for(var E=g.key,k=p;k!==null;){if(k.key===E){if(E=g.type,E===Fn){if(k.tag===7){n(h,k.sibling),p=i(k,g.props.children),p.return=h,h=p;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ut&&ad(E)===k.type){n(h,k.sibling),p=i(k,g.props),p.ref=Lr(h,k,g),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}g.type===Fn?(p=En(g.props.children,h.mode,T,g.key),p.return=h,h=p):(T=wo(g.type,g.key,g.props,null,h.mode,T),T.ref=Lr(h,p,g),T.return=h,h=T)}return s(h);case Vn:e:{for(k=g.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=i(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=sa(g,h.mode,T),p.return=h,h=p}return s(h);case Ut:return k=g._init,x(h,p,k(g._payload),T)}if(Br(g))return v(h,p,g,T);if(Ar(g))return y(h,p,g,T);Zi(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,g),p.return=h,h=p):(n(h,p),p=oa(g,h.mode,T),p.return=h,h=p),s(h)):n(h,p)}return x}var pr=Nh(!0),bh=Nh(!1),Vo=un(null),Fo=null,Gn=null,mu=null;function gu(){mu=Gn=Fo=null}function yu(e){var t=Vo.current;Y(Vo),e._currentValue=t}function el(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function or(e,t){Fo=e,mu=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(mu!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(Fo===null)throw Error(A(308));Gn=e,Fo.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var xn=null;function vu(e){xn===null?xn=[e]:xn.push(e)}function Mh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vu(t)):(n.next=i.next,i.next=n),t.interleaved=n,jt(e,r)}function jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $t=!1;function xu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jt(e,n)}return i=r.interleaved,i===null?(t.next=t,vu(r)):(t.next=i.next,i.next=t),r.interleaved=t,jt(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}function ld(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,r){var i=e.updateQueue;$t=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,m=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(f=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(m,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(m,d,f):v,f==null)break e;d=ne({},d,f);break e;case 2:$t=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Nn|=s,e.lanes=s,e.memoizedState=d}}function ud(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ea.transition;ea.transition={};try{e(!1),t()}finally{$=n,ea.transition=r}}function Xh(){return nt().memoizedState}function sx(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qh(e))qh(t,n);else if(n=Mh(e,t,n,r),n!==null){var i=be();ct(n,e,r,i),Zh(n,t,r)}}function ax(e,t,n){var r=tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qh(e))qh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,dt(a,s)){var l=t.interleaved;l===null?(i.next=i,vu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Mh(e,t,i,r),n!==null&&(i=be(),ct(n,e,r,i),Zh(n,t,r))}}function Qh(e){var t=e.alternate;return e===te||t!==null&&t===te}function qh(e,t){Zr=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}var $o={readContext:tt,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},lx={readContext:tt,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,Wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sx.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:cd,useDebugValue:Au,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=cd(!1),t=e[0];return e=ox.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,i=ht();if(Z){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ge===null)throw Error(A(349));Rn&30||Dh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,dd(Vh.bind(null,r,o,e),[e]),r.flags|=2048,Si(9,Ih.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ht(),t=ge.identifierPrefix;if(Z){var n=At,r=kt;n=(r&~(1<<32-ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[gi]=r,lm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Da(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)G($r[i],e);i=r;break;case"source":G("error",e),i=r;break;case"img":case"image":case"link":G("error",e),G("load",e),i=r;break;case"details":G("toggle",e),i=r;break;case"input":bc(e,r),i=ba(e,r),G("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),G("invalid",e);break;case"textarea":Lc(e,r),i=ja(e,r),G("invalid",e);break;default:i=r}Oa(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Bp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ai(e,l):typeof l=="number"&&ai(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(si.hasOwnProperty(o)?l!=null&&o==="onScroll"&&G("scroll",e):l!=null&&Zl(e,o,l,s))}switch(n){case"input":Ui(e),Mc(e,r,!1);break;case"textarea":Ui(e),jc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?tr(e,!!r.multiple,o,!1):r.defaultValue!=null&&tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=jo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Te(t),null;case 6:if(e&&t.stateNode!=null)cm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=wn(vi.current),wn(yt.current),qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[mt]=t,(o=r.nodeValue!==n)&&(e=$e,e!==null))switch(e.tag){case 3:Qi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mt]=t,t.stateNode=r}return Te(t),null;case 13:if(Y(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Ue!==null&&t.mode&1&&!(t.flags&128))Rh(),fr(),t.flags|=98560,o=!1;else if(o=qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(A(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));o[mt]=t}else fr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),o=!1}else at!==null&&(gl(at),at=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?de===0&&(de=3):_u())),t.updateQueue!==null&&(t.flags|=4),Te(t),null);case 4:return hr(),ll(e,t),e===null&&hi(t.stateNode.containerInfo),Te(t),null;case 10:return yu(t.type._context),Te(t),null;case 17:return Ie(t.type)&&_o(),Te(t),null;case 19:if(Y(J),o=t.memoizedState,o===null)return Te(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)jr(o,!1);else{if(de!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Bo(e),s!==null){for(t.flags|=128,jr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(J,J.current&1|2),t.child}e=e.sibling}o.tail!==null&&ae()>gr&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Bo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Z)return Te(t),null}else 2*ae()-o.renderingStartTime>gr&&n!==1073741824&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ae(),t.sibling=null,n=J.current,H(J,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function gx(e,t){switch(pu(t),t.tag){case 1:return Ie(t.type)&&_o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),Y(De),Y(ke),Tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(Y(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(J),null;case 4:return hr(),null;case 10:return yu(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var eo=!1,Pe=!1,yx=typeof WeakSet=="function"?WeakSet:Set,N=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ul(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Td=!1;function vx(e,t){if(Ka=bo,e=mh(),du(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ga={focusedElem:e,selectionRange:n},bo=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:ot(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(T){oe(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=Td,Td=!1,v}function Jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ul(t,n,o)}i=i.next}while(i!==r)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[gi],delete t[Qa],delete t[ex],delete t[tx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fm(e){return e.tag===5||e.tag===3||e.tag===4}function Ed(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jo));else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}function fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fl(e,t,n),e=e.sibling;e!==null;)fl(e,t,n),e=e.sibling}var ye=null,st=!1;function Vt(e,t,n){for(n=n.child;n!==null;)pm(e,t,n),n=n.sibling}function pm(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ls,n)}catch{}switch(n.tag){case 5:Pe||Yn(n,t);case 6:var r=ye,i=st;ye=null,Vt(e,t,n),ye=r,st=i,ye!==null&&(st?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(st?(e=ye,n=n.stateNode,e.nodeType===8?qs(e.parentNode,n):e.nodeType===1&&qs(e,n),di(e)):qs(ye,n.stateNode));break;case 4:r=ye,i=st,ye=n.stateNode.containerInfo,st=!0,Vt(e,t,n),ye=r,st=i;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ul(n,t,s),i=i.next}while(i!==r)}Vt(e,t,n);break;case 1:if(!Pe&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Vt(e,t,n),Pe=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function Pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yx),t.forEach(function(r){var i=Ax.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wx(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Ko=0,B&6)throw Error(A(331));var i=B;for(B|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lae()-Mu?Tn(e,0):bu|=n),Ve(e,t)}function Sm(e,t){t===0&&(e.mode&1?(t=Hi,Hi<<=1,!(Hi&130023424)&&(Hi=4194304)):t=1);var n=be();e=jt(e,t),e!==null&&(bi(e,t,n),Ve(e,n))}function kx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sm(e,n)}function Ax(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Sm(e,n)}var Tm;Tm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,hx(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,Z&&t.flags&1048576&&kh(t,Io,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yo(e,t),e=t.pendingProps;var i=dr(t,ke.current);or(t,n),i=Pu(null,t,r,e,i,n);var o=Cu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(r)?(o=!0,Oo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xu(t),i.updater=ms,t.stateNode=i,i._reactInternals=t,nl(t,r,e,n),t=ol(null,t,r,!0,o,n)):(t.tag=0,Z&&o&&fu(t),Ne(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Nx(r),e=ot(r,e),i){case 0:t=il(null,t,r,e,n);break e;case 1:t=xd(null,t,r,e,n);break e;case 11:t=yd(null,t,r,e,n);break e;case 14:t=vd(null,t,r,ot(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),il(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),xd(e,t,r,i,n);case 3:e:{if(om(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Lh(e,t),zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=mr(Error(A(423)),t),t=wd(e,t,r,n,i);break e}else if(r!==i){i=mr(Error(A(424)),t),t=wd(e,t,r,n,i);break e}else for(Ue=Zt(t.stateNode.containerInfo.firstChild),$e=t,Z=!0,at=null,n=bh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fr(),r===i){t=_t(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return jh(t),e===null&&Ja(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ya(r,i)?s=null:o!==null&&Ya(r,o)&&(t.flags|=32),im(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&Ja(t),null;case 13:return sm(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),yd(e,t,r,i,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,H(Vo,r._currentValue),r._currentValue=s,o!==null)if(dt(o.value,s)){if(o.children===i.children&&!De.current){t=_t(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Rt(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),el(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),el(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ne(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,or(t,n),i=tt(i),r=r(i),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,i=ot(r,t.pendingProps),i=ot(r.type,i),vd(e,t,r,i,n);case 15:return nm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),yo(e,t),t.tag=1,Ie(r)?(e=!0,Oo(t)):e=!1,or(t,n),Jh(t,r,i),nl(t,r,i,n),ol(null,t,r,!0,e,n);case 19:return am(e,t,n);case 22:return rm(e,t,n)}throw Error(A(156,t.tag))};function Em(e,t){return Qp(e,t)}function Rx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Je(e,t,n,r){return new Rx(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nx(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=Je(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ou(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return En(n.children,i,o,t);case Jl:s=8,i|=8;break;case ka:return e=Je(12,n,t,i|2),e.elementType=ka,e.lanes=o,e;case Aa:return e=Je(13,n,t,i),e.elementType=Aa,e.lanes=o,e;case Ra:return e=Je(19,n,t,i),e.elementType=Ra,e.lanes=o,e;case jp:return vs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mp:s=10;break e;case Lp:s=9;break e;case eu:s=11;break e;case tu:s=14;break e;case Ut:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Je(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function En(e,t,n,r){return e=Je(7,e,r,t),e.lanes=n,e}function vs(e,t,n,r){return e=Je(22,e,r,t),e.elementType=jp,e.lanes=n,e.stateNode={isHidden:!1},e}function oa(e,t,n){return e=Je(6,e,null,t),e.lanes=n,e}function sa(e,t,n){return t=Je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bx(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zs(0),this.expirationTimes=zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,i,o,s,a,l){return e=new bx(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Je(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xu(o),e}function Mx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Am)}catch(e){console.error(e)}}Am(),Ap.exports=Ge;var Es=Ap.exports;const Dx=wr(Es);var Ld=Es;Pa.createRoot=Ld.createRoot,Pa.hydrateRoot=Ld.hydrateRoot;/** * @remix-run/router v1.23.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Rm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vx(){return Math.random().toString(36).substr(2,8)}function _d(e,t){return{usr:e.state,key:e.key,idx:t}}function yl(e,t,n,r){return n===void 0&&(n=null),Xo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:n,key:t&&t.key||r||Vx()})}function Nm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fx(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Yt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Xo({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Yt.Pop;let x=c(),h=x==null?null:x-u;u=x,l&&l({action:a,location:y.location,delta:h})}function f(x,h){a=Yt.Push;let p=yl(y.location,x,h);n&&n(p,x),u=c()+1;let g=_d(p,u),T=y.createHref(p);try{s.pushState(g,"",T)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(T)}o&&l&&l({action:a,location:y.location,delta:1})}function m(x,h){a=Yt.Replace;let p=yl(y.location,x,h);n&&n(p,x),u=c();let g=_d(p,u),T=y.createHref(p);s.replaceState(g,"",T),o&&l&&l({action:a,location:y.location,delta:0})}function v(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:Nm(x);return p=p.replace(/ $/,"%20"),Fe(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return a},get location(){return e(i,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(jd,d),l=x,()=>{i.removeEventListener(jd,d),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let h=v(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:m,go(x){return s.go(x)}};return y}var Od;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Od||(Od={}));function zx(e,t,n){return n===void 0&&(n="/"),Bx(e,t,n,!1)}function Bx(e,t,n,r){let i=typeof t=="string"?Ps(t):t,o=Lm(i.pathname||"/",n);if(o==null)return null;let s=bm(e);Ux(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Fe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ar([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bm(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Xx(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Mm(o.path))i(o,s,l)}),t}function Mm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Mm(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ux(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $x=/^:[\w-]+$/,Wx=3,Hx=2,Kx=1,Gx=10,Yx=-2,Dd=e=>e==="*";function Xx(e,t){let n=e.split("/"),r=n.length;return n.some(Dd)&&(r+=Yx),t&&(r+=Hx),n.filter(i=>!Dd(i)).reduce((i,o)=>i+($x.test(o)?Wx:o===""?Kx:Gx),r)}function Qx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function qx(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:f,isOptional:m}=c;if(f==="*"){let y=a[d]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=a[d];return m&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function Zx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Jx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Lm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const ar=e=>e.join("/").replace(/\/\/+/g,"/"),ew=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function tw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jm=["post","put","patch","delete"];new Set(jm);const nw=["get",...jm];new Set(nw);/** * React Router v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},a,x.params),pathname:ar([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ar([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?w.createElement(Cs.Provider,{value:{location:Qo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Yt.Pop}},y):y}function lw(){let e=gw(),t=tw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,o)}const uw=w.createElement(lw,null);class cw extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(ks.Provider,{value:this.props.routeContext},w.createElement(Om.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dw(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(rw);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(ks.Provider,{value:t},r)}function fw(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Fe(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let m,v=!1,y=null,x=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||uw,l&&(u<0&&f===0?(yw("route-fallback",!1),v=!0,x=null):u===f&&(v=!0,x=d.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,f+1)),p=()=>{let g;return m?g=y:v?g=x:d.route.Component?g=w.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,w.createElement(dw,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?w.createElement(cw,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var vl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vl||{});function pw(e){let t=w.useContext(iw);return t||Fe(!1),t}function hw(e){let t=w.useContext(ks);return t||Fe(!1),t}function mw(e){let t=hw(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function gw(){var e;let t=w.useContext(Om),n=pw(vl.UseRouteError),r=mw(vl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Vd={};function yw(e,t,n){!t&&!Vd[e]&&(Vd[e]=!0)}function vw(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Dm(e){Fe(!1)}function xw(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Yt.Pop,navigator:o,static:s=!1,future:a}=e;zu()&&Fe(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:o,static:s,future:Qo({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Ps(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:v="default"}=r,y=w.useMemo(()=>{let x=Lm(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:m,key:v},navigationType:i}},[l,c,d,f,m,v,i]);return y==null?null:w.createElement(_m.Provider,{value:u},w.createElement(Cs.Provider,{children:n,value:y}))}function ww(e){let{children:t,location:n}=e;return sw(xl(t),n)}new Promise(()=>{});function xl(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,xl(r.props.children,o));return}r.type!==Dm&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=xl(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const Sw="6";try{window.__reactRouterVersion=Sw}catch{}const Tw="startTransition",Fd=Cv[Tw];function Ew(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=Ix({window:i,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=w.useCallback(d=>{u&&Fd?Fd(()=>l(d)):l(d)},[l,u]);return w.useLayoutEffect(()=>s.listen(c),[s,c]),w.useEffect(()=>vw(r),[r]),w.createElement(xw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var zd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zd||(zd={}));var Bd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bd||(Bd={}));var Im={exports:{}},Pw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Cw=Pw,kw=Cw;function Vm(){}function Fm(){}Fm.resetWarningCache=Vm;var Aw=function(){function e(r,i,o,s,a,l){if(l!==kw){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Fm,resetWarningCache:Vm};return n.PropTypes=n,n};Im.exports=Aw();var Rw=Im.exports;const Q=wr(Rw);function Nw(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var zm=w,bw=Nw(zm);function Ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Lw=!!(typeof window<"u"&&window.document&&window.document.createElement);function jw(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){Mw(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var v=a;return a=void 0,s=[],v};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var v=s.indexOf(this);s.splice(v,1),l()},f.render=function(){return bw.createElement(o,this.props)},d}(zm.PureComponent);return Ud(u,"displayName","SideEffect("+r(o)+")"),Ud(u,"canUseDOM",Lw),u}}var _w=jw;const Ow=wr(_w);var Dw=typeof Element<"u",Iw=typeof Map=="function",Vw=typeof Set=="function",Fw=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function So(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!So(e[r],t[r]))return!1;return!0}var o;if(Iw&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!So(r.value[1],t.get(r.value[0])))return!1;return!0}if(Vw&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Fw&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Dw&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!So(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var zw=function(t,n){try{return So(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Bw=wr(zw);/* object-assign (c) Sindre Sorhus @license MIT */var $d=Object.getOwnPropertySymbols,Uw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable;function Ww(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Hw(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Kw=Hw()?Object.assign:function(e,t){for(var n,r=Ww(e),i,o=1;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},e1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},wl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},t1=function(t){var n=lr(t,D.TITLE),r=lr(t,Ei.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=lr(t,Ei.DEFAULT_TITLE);return n||i||void 0},n1=function(t){return lr(t,Ei.ON_CHANGE_CLIENT_STATE)||function(){}},aa=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return je({},r,i)},{})},r1=function(t,n){return n.filter(function(r){return typeof r[D.BASE]<"u"}).map(function(r){return r[D.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var o=Object.keys(i),s=0;s=0;r--){var i=t[r];if(i.hasOwnProperty(n))return i[n]}return null},i1=function(t){return{baseTag:r1([q.HREF,q.TARGET],t),bodyAttributes:aa(Pn.BODY,t),defer:lr(t,Ei.DEFER),encode:lr(t,Ei.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:aa(Pn.HTML,t),linkTags:Or(D.LINK,[q.REL,q.HREF],t),metaTags:Or(D.META,[q.NAME,q.CHARSET,q.HTTPEQUIV,q.PROPERTY,q.ITEM_PROP],t),noscriptTags:Or(D.NOSCRIPT,[q.INNER_HTML],t),onChangeClientState:n1(t),scriptTags:Or(D.SCRIPT,[q.SRC,q.INNER_HTML],t),styleTags:Or(D.STYLE,[q.CSS_TEXT],t),title:t1(t),titleAttributes:aa(Pn.TITLE,t)}},Sl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Sl(t)},0)}}(),Hd=function(t){return clearTimeout(t)},o1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Sl:global.requestAnimationFrame||Sl,s1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Hd:global.cancelAnimationFrame||Hd,a1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Dr=null,l1=function(t){Dr&&s1(Dr),t.defer?Dr=o1(function(){Kd(t,function(){Dr=null})}):(Kd(t),Dr=null)},Kd=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,m=t.titleAttributes;Tl(D.BODY,i),Tl(D.HTML,o),u1(f,m);var v={baseTag:In(D.BASE,r),linkTags:In(D.LINK,s),metaTags:In(D.META,a),noscriptTags:In(D.NOSCRIPT,l),scriptTags:In(D.SCRIPT,c),styleTags:In(D.STYLE,d)},y={},x={};Object.keys(v).forEach(function(h){var p=v[h],g=p.newTags,T=p.oldTags;g.length&&(y[h]=g),T.length&&(x[h]=v[h].oldTags)}),n&&n(),u(t,y,x)},Bm=function(t){return Array.isArray(t)?t.join(""):t},u1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Bm(t)),Tl(D.TITLE,n)},Tl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(lt),o=i?i.split(","):[],s=[].concat(o),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);o.length===s.length?r.removeAttribute(lt):r.getAttribute(lt)!==a.join(",")&&r.setAttribute(lt,a.join(","))}},In=function(t,n){var r=document.head||document.querySelector(D.HEAD),i=r.querySelectorAll(t+"["+lt+"]"),o=Array.prototype.slice.call(i),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===q.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===q.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(lt,"true"),o.some(function(f,m){return a=m,u.isEqualNode(f)})?o.splice(a,1):s.push(u)}),o.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:o,newTags:s}},Um=function(t){return Object.keys(t).reduce(function(n,r){var i=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+i:i},"")},c1=function(t,n,r,i){var o=Um(r),s=Bm(n);return o?"<"+t+" "+lt+'="true" '+o+">"+wl(s,i)+"":"<"+t+" "+lt+'="true">'+wl(s,i)+""},d1=function(t,n,r){return n.reduce(function(i,o){var s=Object.keys(o).filter(function(u){return!(u===q.INNER_HTML||u===q.CSS_TEXT)}).reduce(function(u,c){var d=typeof o[c]>"u"?c:c+'="'+wl(o[c],r)+'"';return u?u+" "+d:d},""),a=o.innerHTML||o.cssText||"",l=Xw.indexOf(t)===-1;return i+"<"+t+" "+lt+'="true" '+s+(l?"/>":">"+a+"")},"")},$m=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[qo[i]||i]=t[i],r},n)},f1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Yw[i]||i]=t[i],r},n)},p1=function(t,n,r){var i,o=(i={key:n},i[lt]=!0,i),s=$m(r,o);return[ce.createElement(D.TITLE,s,n)]},h1=function(t,n){return n.map(function(r,i){var o,s=(o={key:i},o[lt]=!0,o);return Object.keys(r).forEach(function(a){var l=qo[a]||a;if(l===q.INNER_HTML||l===q.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),ce.createElement(t,s)})},Tt=function(t,n,r){switch(t){case D.TITLE:return{toComponent:function(){return p1(t,n.title,n.titleAttributes)},toString:function(){return c1(t,n.title,n.titleAttributes,r)}};case Pn.BODY:case Pn.HTML:return{toComponent:function(){return $m(n)},toString:function(){return Um(n)}};default:return{toComponent:function(){return h1(t,n)},toString:function(){return d1(t,n,r)}}}},Wm=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,m=t.titleAttributes;return{base:Tt(D.BASE,n,i),bodyAttributes:Tt(Pn.BODY,r,i),htmlAttributes:Tt(Pn.HTML,o,i),link:Tt(D.LINK,s,i),meta:Tt(D.META,a,i),noscript:Tt(D.NOSCRIPT,l,i),script:Tt(D.SCRIPT,u,i),style:Tt(D.STYLE,c,i),title:Tt(D.TITLE,{title:f,titleAttributes:m},i)}},m1=function(t){var n,r;return r=n=function(i){Jw(o,i);function o(){return qw(this,o),e1(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!Bw(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case D.SCRIPT:case D.NOSCRIPT:return{innerHTML:l};case D.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return je({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[je({},d,this.mapNestedChildrenToProps(u,f))]),l))},o.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,m=a.nestedChildren;switch(c.type){case D.TITLE:return je({},d,(l={},l[c.type]=m,l.titleAttributes=je({},f),l));case D.BODY:return je({},d,{bodyAttributes:je({},f)});case D.HTML:return je({},d,{htmlAttributes:je({},f)})}return je({},d,(u={},u[c.type]=je({},f),u))},o.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=je({},l);return Object.keys(a).forEach(function(c){var d;u=je({},u,(d={},d[c]=a[c],d))}),u},o.prototype.warnOnInvalidChildren=function(a,l){return!0},o.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return ce.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,m=f.children,v=Wd(f,["children"]),y=f1(v);switch(u.warnOnInvalidChildren(d,m),d.type){case D.LINK:case D.META:case D.NOSCRIPT:case D.SCRIPT:case D.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:y,nestedChildren:m});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:y,nestedChildren:m});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},o.prototype.render=function(){var a=this.props,l=a.children,u=Wd(a,["children"]),c=je({},u);return l&&(c=this.mapChildrenToProps(l,c)),ce.createElement(t,c)},Zw(o,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),o}(ce.Component),n.propTypes={base:Q.object,bodyAttributes:Q.object,children:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),defaultTitle:Q.string,defer:Q.bool,encodeSpecialCharacters:Q.bool,htmlAttributes:Q.object,link:Q.arrayOf(Q.object),meta:Q.arrayOf(Q.object),noscript:Q.arrayOf(Q.object),onChangeClientState:Q.func,script:Q.arrayOf(Q.object),style:Q.arrayOf(Q.object),title:Q.string,titleAttributes:Q.object,titleTemplate:Q.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=Wm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},g1=function(){return null},y1=Ow(i1,l1,Wm)(g1),El=m1(y1);El.renderStatic=El.rewind;function v1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function As(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pl=e=>Array.isArray(e);function Hm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Bu(e,t,n,r){if(typeof t=="function"){const[i,o]=Gd(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Gd(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Rs(e,t,n){const r=e.getProps();return Bu(r,t,n!==void 0?n:r.custom,e)}const Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$u=["initial",...Uu],_i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_n=new Set(_i),Nt=e=>e*1e3,bt=e=>e/1e3,x1={type:"spring",stiffness:500,damping:25,restSpeed:10},w1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),S1={type:"keyframes",duration:.8},T1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},E1=(e,{keyframes:t})=>t.length>2?S1:_n.has(e)?e.startsWith("scale")?w1(t[1]):x1:T1;function Wu(e,t){return e?e[t]||e.default||e:void 0}const P1={skipAnimations:!1,useManualTiming:!1},C1=e=>e!==null;function Ns(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(C1),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const We=e=>e;let Km=We;function k1(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const m=d&&r?t:n;return c&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const ro=["read","resolveKeyframes","update","preRender","render","postRender"],A1=40;function Gm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ro.reduce((h,p)=>(h[p]=k1(o),h),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,m=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,A1),1),i.timestamp=h,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:ro.reduce((h,p)=>{const g=s[p];return h[p]=(T,E=!1,k=!1)=>(n||v(),g.schedule(T,E,k)),h},{}),cancel:h=>{for(let p=0;p(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,R1=1e-7,N1=12;function b1(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ym(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>R1&&++ab1(o,0,1,e,n);return o=>o===0||o===1?o:Ym(i(o),t,r)}const Xm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qm=e=>t=>1-e(1-t),qm=Oi(.33,1.53,.69,.99),Hu=Qm(qm),Zm=Xm(Hu),Jm=e=>(e*=2)<1?.5*Hu(e):.5*(2-Math.pow(2,-10*(e-1))),Ku=e=>1-Math.sin(Math.acos(e)),eg=Qm(Ku),tg=Xm(Ku),ng=e=>/^0[^.\s]+$/u.test(e);function M1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ng(e):!0}const rg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ig=e=>t=>typeof t=="string"&&t.startsWith(e),og=ig("--"),L1=ig("var(--"),Gu=e=>L1(e)?j1.test(e.split("/*")[0].trim()):!1,j1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O1(e){const t=_1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function sg(e,t,n=1){const[r,i]=O1(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rg(s)?parseFloat(s):s}return Gu(i)?sg(i,t,n+1):i}const Ot=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ci={...Pr,transform:e=>Ot(0,1,e)},io={...Pr,default:1},Di=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bt=Di("deg"),vt=Di("%"),j=Di("px"),D1=Di("vh"),I1=Di("vw"),Yd={...vt,parse:e=>vt.parse(e)/100,transform:e=>vt.transform(e*100)},V1=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Xd=e=>e===Pr||e===j,Qd=(e,t)=>parseFloat(e.split(", ")[t]),qd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Qd(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Qd(o[1],e):0}},F1=new Set(["x","y","z"]),z1=_i.filter(e=>!F1.has(e));function B1(e){const t=[];return z1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:qd(4,13),y:qd(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const ag=e=>t=>t.test(e),U1={test:e=>e==="auto",parse:e=>e},lg=[Pr,j,vt,Bt,I1,D1,U1],Zd=e=>lg.find(ag(e)),Cn=new Set;let Cl=!1,kl=!1;function ug(){if(kl){const e=Array.from(Cn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=B1(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}kl=!1,Cl=!1,Cn.forEach(e=>e.complete()),Cn.clear()}function cg(){Cn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(kl=!0)})}function $1(){cg(),ug()}class Yu{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cn.add(this),Cl||(Cl=!0,X.read(cg),X.resolveKeyframes(ug))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;oMath.round(e*1e5)/1e5,Xu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W1(e){return e==null}const H1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qu=(e,t)=>n=>!!(typeof n=="string"&&H1.test(n)&&n.startsWith(e)||t&&!W1(n)&&Object.prototype.hasOwnProperty.call(n,t)),dg=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Xu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},K1=e=>Ot(0,255,e),ua={...Pr,transform:e=>Math.round(K1(e))},Sn={test:Qu("rgb","red"),parse:dg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ua.transform(e)+", "+ua.transform(t)+", "+ua.transform(n)+", "+ni(Ci.transform(r))+")"};function G1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Al={test:Qu("#"),parse:G1,transform:Sn.transform},Qn={test:Qu("hsl","hue"),parse:dg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vt.transform(ni(t))+", "+vt.transform(ni(n))+", "+ni(Ci.transform(r))+")"},Ee={test:e=>Sn.test(e)||Al.test(e)||Qn.test(e),parse:e=>Sn.test(e)?Sn.parse(e):Qn.test(e)?Qn.parse(e):Al.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Sn.transform(e):Qn.transform(e)},Y1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Y1))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",pg="color",Q1="var",q1="var(",Jd="${}",Z1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ki(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Z1,l=>(Ee.test(l)?(r.color.push(o),i.push(pg),n.push(Ee.parse(l))):l.startsWith(q1)?(r.var.push(o),i.push(Q1),n.push(l)):(r.number.push(o),i.push(fg),n.push(parseFloat(l))),++o,Jd)).split(Jd);return{values:n,split:a,indexes:r,types:i}}function hg(e){return ki(e).values}function mg(e){const{split:t,types:n}=ki(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function eS(e){const t=hg(e);return mg(e)(t.map(J1))}const an={test:X1,parse:hg,createTransformer:mg,getAnimatableNone:eS},tS=new Set(["brightness","contrast","saturate","opacity"]);function nS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xu)||[];if(!r)return e;const i=n.replace(r,"");let o=tS.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const rS=/\b([a-z-]*)\(.*?\)/gu,Rl={...an,getAnimatableNone:e=>{const t=e.match(rS);return t?t.map(nS).join(" "):e}},iS={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},oS={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:io,scaleX:io,scaleY:io,scaleZ:io,skew:Bt,skewX:Bt,skewY:Bt,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Ci,originX:Yd,originY:Yd,originZ:j},ef={...Pr,transform:Math.round},qu={...iS,...oS,zIndex:ef,size:j,fillOpacity:Ci,strokeOpacity:Ci,numOctaves:ef},sS={...qu,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:Rl,WebkitFilter:Rl},Zu=e=>sS[e];function gg(e,t){let n=Zu(e);return n!==Rl&&(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aS=new Set(["auto","none","0"]);function lS(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Ju(e){return typeof e=="function"}let To;function uS(){To=void 0}const xt={now:()=>(To===void 0&&xt.set(ve.isProcessing||P1.useManualTiming?ve.timestamp:performance.now()),To),set:e=>{To=e,queueMicrotask(uS)}},tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(an.test(e)||e==="0")&&!e.startsWith("url("));function cS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nfS?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&$1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=xt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!dS(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(Ns(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const vr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o{const c=u*s,d=c*e,f=c-n,m=Nl(u,s),v=Math.exp(-d);return ca-f/m*v},o=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Nl(Math.pow(u,2),s);return(-i(u)+ca>0?-1:1)*((f-m)*v)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ca+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=gS(i,o,a);if(e=Nt(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const mS=12;function gS(e,t,n){let r=n;for(let i=1;i=bl?1/0:t}const yS=["duration","bounce"],vS=["stiffness","damping","mass"];function nf(e,t){return t.some(n=>e[n]!==void 0)}function xS(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!nf(e,vS)&&nf(e,yS))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ot(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=hS(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function Eg(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=xS({...n,velocity:-bt(n.velocity||0)}),v=f||0,y=u/(2*Math.sqrt(l*c)),x=s-o,h=bt(Math.sqrt(l/c)),p=Math.abs(x)<5;r||(r=p?ie.restSpeed.granular:ie.restSpeed.default),i||(i=p?ie.restDelta.granular:ie.restDelta.default);let g;if(y<1){const E=Nl(h,y);g=k=>{const P=Math.exp(-y*h*k);return s-P*((v+y*h*x)/E*Math.sin(E*k)+x*Math.cos(E*k))}}else if(y===1)g=E=>s-Math.exp(-h*E)*(x+(v+h*x)*E);else{const E=h*Math.sqrt(y*y-1);g=k=>{const P=Math.exp(-y*h*k),C=Math.min(E*k,300);return s-P*((v+y*h*x)*Math.sinh(C)+E*x*Math.cosh(C))/E}}const T={calculatedDuration:m&&d||null,next:E=>{const k=g(E);if(m)a.done=E>=d;else{let P=0;y<1&&(P=E===0?Nt(v):Sg(g,E,k));const C=Math.abs(P)<=r,L=Math.abs(s-k)<=i;a.done=C&&L}return a.value=a.done?s:k,a},toString:()=>{const E=Math.min(Tg(T),bl),k=xg(P=>T.next(E*P).value,E,30);return E+"ms "+k}};return T}function rf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=C=>a!==void 0&&Cl,v=C=>a===void 0?l:l===void 0||Math.abs(a-C)-y*Math.exp(-C/r),g=C=>h+p(C),T=C=>{const L=p(C),b=g(C);f.done=Math.abs(L)<=u,f.value=f.done?h:b};let E,k;const P=C=>{m(f.value)&&(E=C,k=Eg({keyframes:[f.value,v(f.value)],velocity:Sg(g,C,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:C=>{let L=!1;return!k&&E===void 0&&(L=!0,T(C),P(C)),E!==void 0&&C>=E?k.next(C-E):(!L&&T(C),f)}}}const wS=Oi(.42,0,1,1),SS=Oi(0,0,.58,1),Pg=Oi(.42,0,.58,1),TS=e=>Array.isArray(e)&&typeof e[0]!="number",ec=e=>Array.isArray(e)&&typeof e[0]=="number",ES={linear:We,easeIn:wS,easeInOut:Pg,easeOut:SS,circIn:Ku,circInOut:tg,circOut:eg,backIn:Hu,backInOut:Zm,backOut:qm,anticipate:Jm},of=e=>{if(ec(e)){Km(e.length===4);const[t,n,r,i]=e;return Oi(t,n,r,i)}else if(typeof e=="string")return ES[e];return e},PS=(e,t)=>n=>t(e(n)),Ii=(...e)=>e.reduce(PS),ee=(e,t,n)=>e+(t-e)*n;function da(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function CS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=da(l,a,e+1/3),o=da(l,a,e),s=da(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Zo(e,t){return n=>n>0?t:e}const fa=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},kS=[Al,Sn,Qn],AS=e=>kS.find(t=>t.test(e));function sf(e){const t=AS(e);if(!t)return!1;let n=t.parse(e);return t===Qn&&(n=CS(n)),n}const af=(e,t)=>{const n=sf(e),r=sf(t);if(!n||!r)return Zo(e,t);const i={...n};return o=>(i.red=fa(n.red,r.red,o),i.green=fa(n.green,r.green,o),i.blue=fa(n.blue,r.blue,o),i.alpha=ee(n.alpha,r.alpha,o),Sn.transform(i))},Ml=new Set(["none","hidden"]);function RS(e,t){return Ml.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function NS(e,t){return n=>ee(e,t,n)}function tc(e){return typeof e=="number"?NS:typeof e=="string"?Gu(e)?Zo:Ee.test(e)?af:LS:Array.isArray(e)?Cg:typeof e=="object"?Ee.test(e)?af:bS:Zo}function Cg(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>tc(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function MS(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=an.createTransformer(t),r=ki(e),i=ki(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ml.has(e)&&!i.values.length||Ml.has(t)&&!r.values.length?RS(e,t):Ii(Cg(MS(r,i),i.values),n):Zo(e,t)};function kg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):tc(e)(e,t)}function jS(e,t,n){const r=[],i=n||kg,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=jS(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Ot(e[0],e[o-1],u)):l}function OS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=vr(0,t,r);e.push(ee(n,1,i))}}function DS(e){const t=[0];return OS(t,e.length-1),t}function IS(e,t){return e.map(n=>n*t)}function VS(e,t){return e.map(()=>t||Pg).splice(0,e.length-1)}function Jo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=TS(r)?r.map(of):of(r),o={done:!1,value:t[0]},s=IS(n&&n.length===t.length?n:DS(t),e),a=_S(s,t,{ease:Array.isArray(i)?i:VS(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const FS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>sn(t),now:()=>ve.isProcessing?ve.timestamp:xt.now()}},zS={decay:rf,inertia:rf,tween:Jo,keyframes:Jo,spring:Eg},BS=e=>e/100;class nc extends vg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Yu,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=Ju(n)?n:zS[n]||Jo;let l,u;a!==Jo&&typeof t[0]!="number"&&(l=Ii(BS,kg(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Tg(c));const{calculatedDuration:d}=c,f=d+i,m=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:m,repeatType:v,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,T=o;if(m){const C=Math.min(this.currentTime,c)/d;let L=Math.floor(C),b=C%1;!b&&C>=1&&(b=1),b===1&&L--,L=Math.min(L,m+1),!!(L%2)&&(v==="reverse"?(b=1-b,y&&(b-=y/d)):v==="mirror"&&(T=s)),g=Ot(0,1,b)*d}const E=p?{done:!1,value:l[0]}:T.next(g);a&&(E.value=a(E.value));let{done:k}=E;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&i!==void 0&&(E.value=Ns(l,this.options,i)),x&&x(E.value),P&&this.finish(),E}get duration(){const{resolved:t}=this;return t?bt(t.calculatedDuration):0}get time(){return bt(this.currentTime)}set time(t){t=Nt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=bt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=FS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const US=new Set(["opacity","clipPath","filter","transform"]);function rc(e){let t;return()=>(t===void 0&&(t=e()),t)}const $S={linearEasing:void 0};function WS(e,t){const n=rc(e);return()=>{var r;return(r=$S[t])!==null&&r!==void 0?r:n()}}const es=WS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Ag(e){return!!(typeof e=="function"&&es()||!e||typeof e=="string"&&(e in Ll||es())||ec(e)||Array.isArray(e)&&e.every(Ag))}const Wr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ll={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wr([0,.65,.55,1]),circOut:Wr([.55,0,1,.45]),backIn:Wr([.31,.01,.66,-.59]),backOut:Wr([.33,1.53,.69,.99])};function Rg(e,t){if(e)return typeof e=="function"&&es()?xg(e,t):ec(e)?Wr(e):Array.isArray(e)?e.map(n=>Rg(n,t)||Ll.easeOut):Ll[e]}function HS(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Rg(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function lf(e,t){e.timeline=t,e.onfinish=null}const KS=rc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ts=10,GS=2e4;function YS(e){return Ju(e.type)||e.type==="spring"||!Ag(e.ease)}function XS(e,t){const n=new nc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&es()&&QS(s)&&(s=Ng[s]),YS(this.options)){const{onComplete:f,onUpdate:m,motionValue:v,element:y,...x}=this.options,h=XS(t,x);t=h.keyframes,t.length===1&&(t[1]=t[0]),i=h.duration,o=h.times,s=h.ease,a="keyframes"}const d=HS(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(lf(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ns(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return We;const{animation:r}=n;lf(r,t)}return We}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...m}=this.options,v=new nc({...m,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),y=Nt(this.time);u.setWithVelocity(v.sample(y-ts).value,v.sample(y).value,ts)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return KS()&&r&&US.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const qS=rc(()=>window.ScrollTimeline!==void 0);class ZS{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rqS()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function JS({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ic=(e,t,n,r={},i,o)=>s=>{const a=Wu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Nt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};JS(a)||(c={...c,...E1(e,c)}),c.duration&&(c.duration=Nt(c.duration)),c.repeatDelay&&(c.repeatDelay=Nt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const f=Ns(c.keyframes,a);if(f!==void 0)return X.update(()=>{c.onUpdate(f),c.onComplete()}),new ZS([])}return!o&&uf.supports(c)?new uf(c):new nc(c)},eT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tT=e=>Pl(e)?e[e.length-1]||0:e;function oc(e,t){e.indexOf(t)===-1&&e.push(t)}function sc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ac{constructor(){this.subscriptions=[]}add(t){return oc(this.subscriptions,t),()=>sc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class rT{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=xt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=xt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nT(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ac);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cf);return wg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ai(e,t){return new rT(e,t)}function iT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ai(n))}function oT(e,t){const n=Rs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=tT(o[s]);iT(e,s,a)}}const lc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sT="framerAppearId",bg="data-"+lc(sT);function Mg(e){return e.props[bg]}const Ce=e=>!!(e&&e.getVelocity);function aT(e){return!!(Ce(e)&&e.add)}function jl(e,t){const n=e.getValue("willChange");if(aT(n))return n.add(t)}function lT({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Lg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),m=l[d];if(m===void 0||c&&lT(c,d))continue;const v={delay:n,...Wu(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const h=Mg(e);if(h){const p=window.MotionHandoffAnimation(h,d,X);p!==null&&(v.startTime=p,y=!0)}}jl(e,d),f.start(ic(d,f,m,e.shouldReduceMotion&&_n.has(d)?{type:!1}:v,e,y));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{X.update(()=>{a&&oT(e,a)})}),u}function _l(e,t,n={}){var r;const i=Rs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Lg(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return uT(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function uT(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(cT).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(_l(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function cT(e,t){return e.sortNodePosition(t)}function dT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>_l(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=_l(e,t,n);else{const i=typeof t=="function"?Rs(e,t,n.custom):t;r=Promise.all(Lg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const fT=$u.length;function jg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>dT(e,n,r)))}function gT(e){let t=mT(e),n=df(),r=!0;const i=l=>(u,c)=>{var d;const f=Rs(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:v,...y}=f;u={...u,...y,...v}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=jg(e.parent)||{},d=[],f=new Set;let m={},v=1/0;for(let x=0;xv&&T,L=!1;const b=Array.isArray(g)?g:[g];let U=b.reduce(i(h),{});E===!1&&(U={});const{prevResolvedValues:I={}}=p,Ae={...I,...U},O=W=>{C=!0,f.has(W)&&(L=!0,f.delete(W)),p.needsAnimating[W]=!0;const R=e.getValue(W);R&&(R.liveStyle=!1)};for(const W in Ae){const R=U[W],M=I[W];if(m.hasOwnProperty(W))continue;let _=!1;Pl(R)&&Pl(M)?_=!Hm(R,M):_=R!==M,_?R!=null?O(W):f.add(W):R!==void 0&&f.has(W)?O(W):p.protectedKeys[W]=!0}p.prevProp=g,p.prevResolvedValues=U,p.isActive&&(m={...m,...U}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(k&&P)||L)&&d.push(...b.map(W=>({animation:W,options:{type:h}})))}if(f.size){const x={};f.forEach(h=>{const p=e.getBaseTarget(h),g=e.getValue(h);g&&(g.liveStyle=!0),x[h]=p??null}),d.push({animation:x})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=df(),r=!0}}}function yT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hm(t,e):!1}function pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function df(){return{animate:pn(!0),whileInView:pn(),whileHover:pn(),whileTap:pn(),whileDrag:pn(),whileFocus:pn(),exit:pn()}}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class vT extends dn{constructor(t){super(t),t.animationState||(t.animationState=gT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();As(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let xT=0;class wT extends dn{constructor(){super(...arguments),this.id=xT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ST={animation:{Feature:vT},exit:{Feature:wT}},it={x:!1,y:!1};function _g(){return it.x||it.y}function Og(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;t&&(i=t.current);const o=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Dg(e,t){const n=Og(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ff(e){return t=>{t.pointerType==="touch"||_g()||e(t)}}function TT(e,t,n={}){const[r,i,o]=Dg(e,n),s=ff(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=ff(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const uc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hr=new WeakSet;function pf(e){return t=>{t.key==="Enter"&&e(t)}}function pa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ET=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pf(()=>{if(Hr.has(n))return;pa(n,"down");const i=pf(()=>{pa(n,"up")}),o=()=>pa(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},PT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function CT(e){return PT.has(e.tagName)||e.tabIndex!==-1}const Ig=(e,t)=>t?e===t?!0:Ig(e,t.parentElement):!1;function hf(e){return uc(e)&&!_g()}function kT(e,t,n={}){const[r,i,o]=Dg(e,n),s=a=>{const l=a.currentTarget;if(!hf(a)||Hr.has(l))return;Hr.add(l);const u=t(a),c=(m,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!hf(m)||!Hr.has(l))&&(Hr.delete(l),u&&u(m,{success:v}))},d=m=>{c(m,n.useGlobalTarget||Ig(l,m.target))},f=m=>{c(m,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{CT(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),a.addEventListener("focus",u=>ET(u,i),i)}),o}function AT(e){return e==="x"||e==="y"?it[e]?null:(it[e]=!0,()=>{it[e]=!1}):it.x||it.y?null:(it.x=it.y=!0,()=>{it.x=it.y=!1})}function Vi(e){return{point:{x:e.pageX,y:e.pageY}}}const RT=e=>t=>uc(t)&&e(t,Vi(t));function Ri(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ri(e,t,n,r){return Ri(e,t,RT(n),r)}const mf=(e,t)=>Math.abs(e-t);function NT(e,t){const n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vg{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ma(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=NT(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:v}=d,{timestamp:y}=ve;this.history.push({...v,timestamp:y});const{onStart:x,onMove:h}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ha(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ma(d.type==="pointercancel"?this.lastMoveEventInfo:ha(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),v&&v(d,x)},!uc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Vi(t),a=ha(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ma(a,this.history)),this.removeListeners=Ii(ri(this.contextWindow,"pointermove",this.handlePointerMove),ri(this.contextWindow,"pointerup",this.handlePointerUp),ri(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sn(this.updatePoint)}}function ha(e,t){return t?{point:t(e.point)}:e}function gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ma({point:e},t){return{point:e,delta:gf(e,Fg(t)),offset:gf(e,bT(t)),velocity:MT(t,.1)}}function bT(e){return e[0]}function Fg(e){return e[e.length-1]}function MT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nt(t)));)n--;if(!r)return{x:0,y:0};const o=bt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function qn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const zg=1e-4,LT=1-zg,jT=1+zg,Bg=.01,_T=0-Bg,OT=0+Bg;function Ke(e){return e.max-e.min}function DT(e,t,n){return Math.abs(e-t)<=n}function yf(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=Ke(n)/Ke(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=LT&&e.scale<=jT||isNaN(e.scale))&&(e.scale=1),(e.translate>=_T&&e.translate<=OT||isNaN(e.translate))&&(e.translate=0)}function ii(e,t,n,r){yf(e.x,t.x,n.x,r?r.originX:void 0),yf(e.y,t.y,n.y,r?r.originY:void 0)}function vf(e,t,n){e.min=n.min+t.min,e.max=e.min+Ke(t)}function IT(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function xf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ke(t)}function oi(e,t,n){xf(e.x,t.x,n.x),xf(e.y,t.y,n.y)}function VT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function wf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function FT(e,{top:t,left:n,bottom:r,right:i}){return{x:wf(e.x,n,i),y:wf(e.y,t,r)}}function Sf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=vr(t.min,t.max-r,e.min):r>i&&(n=vr(e.min,e.max-i,t.min)),Ot(0,1,n)}function UT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ol=.35;function $T(e=Ol){return e===!1?e=0:e===!0&&(e=Ol),{x:Tf(e,"left","right"),y:Tf(e,"top","bottom")}}function Tf(e,t,n){return{min:Ef(e,t),max:Ef(e,n)}}function Ef(e,t){return typeof e=="number"?e:e[t]||0}const Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zn=()=>({x:Pf(),y:Pf()}),Cf=()=>({min:0,max:0}),se=()=>({x:Cf(),y:Cf()});function Qe(e){return[e("x"),e("y")]}function Ug({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function HT(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ga(e){return e===void 0||e===1}function Dl({scale:e,scaleX:t,scaleY:n}){return!ga(e)||!ga(t)||!ga(n)}function gn(e){return Dl(e)||$g(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $g(e){return kf(e.x)||kf(e.y)}function kf(e){return e&&e!=="0%"}function ns(e,t,n){const r=e-n,i=t*r;return n+i}function Af(e,t,n,r,i){return i!==void 0&&(e=ns(e,i,r)),ns(e,n,r)+t}function Il(e,t=0,n=1,r,i){e.min=Af(e.min,t,n,r,i),e.max=Af(e.max,t,n,r,i)}function Wg(e,{x:t,y:n}){Il(e.x,t.translate,t.scale,t.originPoint),Il(e.y,n.translate,n.scale,n.originPoint)}const Rf=.999999999999,Nf=1.0000000000001;function KT(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;aRf&&(t.x=1),t.yRf&&(t.y=1)}function Jn(e,t){e.min=e.min+t,e.max=e.max+t}function bf(e,t,n,r,i=.5){const o=ee(e.min,e.max,i);Il(e,t,n,o,r)}function er(e,t){bf(e.x,t.x,t.scaleX,t.scale,t.originX),bf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Hg(e,t){return Ug(HT(e.getBoundingClientRect(),t))}function GT(e,t,n){const r=Hg(e,n),{scroll:i}=t;return i&&(Jn(r.x,i.offset.x),Jn(r.y,i.offset.y)),r}const Kg=({current:e})=>e?e.ownerDocument.defaultView:null,YT=new WeakMap;class XT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vi(c).point)},o=(c,d)=>{const{drag:f,dragPropagation:m,onDragStart:v}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=AT(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qe(x=>{let h=this.getAxisMotionValue(x).get()||0;if(vt.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[x];g&&(h=Ke(g)*(parseFloat(h)/100))}}this.originPoint[x]=h}),v&&X.postRender(()=>v(c,d)),jl(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=QT(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Qe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Vg(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Kg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&X.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!oo(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=VT(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=FT(i.layoutBox,n):this.constraints=!1,this.elastic=$T(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=UT(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=GT(r,i.root,this.visualElement.getTransformPagePoint());let s=zT(i.layout.layoutBox,o);if(n){const a=n(WT(s));this.hasMutatedConstraints=!!a,a&&(s=Ug(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qe(c=>{if(!oo(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jl(this.visualElement,t),r.start(ic(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qe(n=>{const{drag:r}=this.getProps();if(!oo(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-ee(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=BT({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qe(s=>{if(!oo(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ee(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;YT.set(this.visualElement,this);const t=this.visualElement.current,n=ri(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();qn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const s=Ri(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ol,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function oo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function QT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qT extends dn{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new XT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mf=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class ZT extends dn{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new Vg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mf(t),onStart:Mf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&X.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=ri(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cc=w.createContext(null);function JT(){const e=w.useContext(cc);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();w.useEffect(()=>r(i),[]);const o=w.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const Gg=w.createContext({}),Yg=w.createContext({}),Eo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Lf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ir={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=Lf(e,t.target.x),r=Lf(e,t.target.y);return`${n}% ${r}%`}},eE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=an.parse(e);if(i.length>5)return r;const o=an.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=ee(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},rs={};function tE(e){Object.assign(rs,e)}const{schedule:dc,cancel:Ok}=Gm(queueMicrotask,!1);class nE extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;tE(rE),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Eo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),dc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xg(e){const[t,n]=JT(),r=w.useContext(Gg);return S.jsx(nE,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Yg),isPresent:t,safeToRemove:n})}const rE={borderRadius:{...Ir,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:Ir,borderBottomRightRadius:Ir,boxShadow:eE},Qg=["TopLeft","TopRight","BottomLeft","BottomRight"],iE=Qg.length,jf=e=>typeof e=="string"?parseFloat(e):e,_f=e=>typeof e=="number"||j.test(e);function oE(e,t,n,r,i,o){i?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,sE(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,aE(r))):o&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(vr(e,t,r))}function Df(e,t){e.min=t.min,e.max=t.max}function Xe(e,t){Df(e.x,t.x),Df(e.y,t.y)}function If(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vf(e,t,n,r,i){return e-=t,e=ns(e,1/n,r),i!==void 0&&(e=ns(e,1/i,r)),e}function lE(e,t=0,n=1,r=.5,i,o=e,s=e){if(vt.test(t)&&(t=parseFloat(t),t=ee(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ee(o.min,o.max,r);e===o&&(a-=t),e.min=Vf(e.min,t,n,a,i),e.max=Vf(e.max,t,n,a,i)}function Ff(e,t,[n,r,i],o,s){lE(e,t[n],t[r],t[i],t.scale,o,s)}const uE=["x","scaleX","originX"],cE=["y","scaleY","originY"];function zf(e,t,n,r){Ff(e.x,t,uE,n?n.x:void 0,r?r.x:void 0),Ff(e.y,t,cE,n?n.y:void 0,r?r.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Zg(e){return Bf(e.x)&&Bf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function dE(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function $f(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jg(e,t){return $f(e.x,t.x)&&$f(e.y,t.y)}function Wf(e){return Ke(e.x)/Ke(e.y)}function Hf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class fE{constructor(){this.members=[]}add(t){oc(this.members,t),t.scheduleRender()}remove(t){if(sc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pE(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:m,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const hE=(e,t)=>e.depth-t.depth;class mE{constructor(){this.children=[],this.isDirty=!1}add(t){oc(this.children,t),this.isDirty=!0}remove(t){sc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hE),this.isDirty=!1,this.children.forEach(t)}}function Po(e){const t=Ce(e)?e.get():e;return eT(t)?t.toValue():t}function gE(e,t){const n=xt.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(sn(r),e(o-t))};return X.read(r,!0),()=>sn(r)}function yE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function vE(e,t,n){const r=Ce(e)?e:Ai(e);return r.start(ic("",r,t,n)),r.animation}const yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Kr=typeof window<"u"&&window.MotionDebug!==void 0,ya=["","X","Y","Z"],xE={visibility:"hidden"},Kf=1e3;let wE=0;function va(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ey(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Mg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ey(r)}function ty({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=wE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Kr&&(yn.totalNodes=yn.resolvedTargetDeltas=yn.recalculatedProjection=0),this.nodes.forEach(EE),this.nodes.forEach(RE),this.nodes.forEach(NE),this.nodes.forEach(PE),Kr&&window.MotionDebug.record(yn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=gE(f,250),Eo.hasAnimatedSinceResize&&(Eo.hasAnimatedSinceResize=!1,this.nodes.forEach(Yf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||_E,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!Jg(this.targetLayout,v)||m,g=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const T={...Wu(y,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||Yf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bE),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ey(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=T/1e3;Xf(d.x,s.x,E),Xf(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LE(this.relativeTarget,this.relativeTargetOrigin,f,E),g&&dE(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=se()),Xe(g,this.relativeTarget)),y&&(this.animationValues=c,oE(c,u,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Eo.hasAnimatedSinceResize=!0,this.currentAnimation=vE(0,Kf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Kf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&ny(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();const d=Ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Xe(a,l),er(a,c),ii(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new fE),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&va("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Gf),this.root.sharedNodes.clear()}}}function SE(e){e.updateLayout()}function TE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Ke(f);f.min=r[d].min,f.max=f.min+m}):ny(o,n.layoutBox,r)&&Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Ke(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Zn();ii(a,r,n.layoutBox);const l=Zn();s?ii(l,e.applyTransform(i,!0),n.measuredBox):ii(l,r,n.layoutBox);const u=!Zg(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const v=se();oi(v,n.layoutBox,f.layoutBox);const y=se();oi(y,r,m.layoutBox),Jg(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function EE(e){Kr&&yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function PE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function CE(e){e.clearSnapshot()}function Gf(e){e.clearMeasurements()}function kE(e){e.isLayoutDirty=!1}function AE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RE(e){e.resolveTargetDelta()}function NE(e){e.calcProjection()}function bE(e){e.resetSkewAndRotation()}function ME(e){e.removeLeadSnapshot()}function Xf(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qf(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function LE(e,t,n,r){Qf(e.x,t.x,n.x,r),Qf(e.y,t.y,n.y,r)}function jE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _E={duration:.45,ease:[.4,0,.1,1]},qf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zf=qf("applewebkit/")&&!qf("chrome/")?Math.round:We;function Jf(e){e.min=Zf(e.min),e.max=Zf(e.max)}function OE(e){Jf(e.x),Jf(e.y)}function ny(e,t,n){return e==="position"||e==="preserve-aspect"&&!DT(Wf(t),Wf(n),.2)}function DE(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const IE=ty({attachResizeListener:(e,t)=>Ri(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xa={current:void 0},ry=ty({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xa.current){const e=new IE({});e.mount(window),e.setOptions({layoutScroll:!0}),xa.current=e}return xa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),VE={pan:{Feature:ZT},drag:{Feature:qT,ProjectionNode:ry,MeasureLayout:Xg}};function ep(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&X.postRender(()=>o(t,Vi(t)))}class FE extends dn{mount(){const{current:t}=this.node;t&&(this.unmount=TT(t,n=>(ep(this.node,n,"Start"),r=>ep(this.node,r,"End"))))}unmount(){}}class zE extends dn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ii(Ri(this.node.current,"focus",()=>this.onFocus()),Ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tp(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&X.postRender(()=>o(t,Vi(t)))}class BE extends dn{mount(){const{current:t}=this.node;t&&(this.unmount=kT(t,n=>(tp(this.node,n,"Start"),(r,{success:i})=>tp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Vl=new WeakMap,wa=new WeakMap,UE=e=>{const t=Vl.get(e.target);t&&t(e)},$E=e=>{e.forEach(UE)};function WE({root:e,...t}){const n=e||document;wa.has(n)||wa.set(n,{});const r=wa.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($E,{root:e,...t})),r[i]}function HE(e,t,n){const r=WE(t);return Vl.set(e,n),r.observe(e),()=>{Vl.delete(e),r.unobserve(e)}}const KE={some:0,all:1};class GE extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:KE[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return HE(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(YE(t,n))&&this.startObserver()}unmount(){}}function YE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const XE={inView:{Feature:GE},tap:{Feature:BE},focus:{Feature:zE},hover:{Feature:FE}},QE={layout:{ProjectionNode:ry,MeasureLayout:Xg}},iy=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bs=w.createContext({}),fc=typeof window<"u",qE=fc?w.useLayoutEffect:w.useEffect,oy=w.createContext({strict:!1});function ZE(e,t,n,r,i){var o,s;const{visualElement:a}=w.useContext(bs),l=w.useContext(oy),u=w.useContext(cc),c=w.useContext(iy).reducedMotion,d=w.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,m=w.useContext(Yg);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&JE(d.current,n,i,m);const v=w.useRef(!1);w.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const y=n[bg],x=w.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return qE(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),dc.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,y)}),x.current=!1))}),f}function JE(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sy(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&qn(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function sy(e){if(e)return e.options.allowProjection!==!1?e.projection:sy(e.parent)}function eP(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qn(n)&&(n.current=r))},[t])}function Ms(e){return As(e.animate)||$u.some(t=>Pi(e[t]))}function ay(e){return!!(Ms(e)||e.variants)}function tP(e,t){if(Ms(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pi(n)?n:void 0,animate:Pi(r)?r:void 0}}return e.inherit!==!1?t:{}}function nP(e){const{initial:t,animate:n}=tP(e,w.useContext(bs));return w.useMemo(()=>({initial:t,animate:n}),[np(t),np(n)])}function np(e){return Array.isArray(e)?e.join(" "):e}const rp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xr={};for(const e in rp)xr[e]={isEnabled:t=>rp[e].some(n=>!!t[n])};function rP(e){for(const t in e)xr[t]={...xr[t],...e[t]}}const iP=Symbol.for("motionComponentSymbol");function oP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&rP(e);function o(a,l){let u;const c={...w.useContext(iy),...a,layoutId:sP(a)},{isStatic:d}=c,f=nP(a),m=r(a,d);if(!d&&fc){aP();const v=lP(c);u=v.MeasureLayout,f.visualElement=ZE(i,m,c,t,v.ProjectionNode)}return S.jsxs(bs.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,eP(m,f.visualElement,l),m,d,f.visualElement)]})}const s=w.forwardRef(o);return s[iP]=i,s}function sP({layoutId:e}){const t=w.useContext(Gg).id;return t&&e!==void 0?t+"-"+e:e}function aP(e,t){w.useContext(oy).strict}function lP(e){const{drag:t,layout:n}=xr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const uP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pc(e){return typeof e!="string"||e.includes("-")?!1:!!(uP.indexOf(e)>-1||/[A-Z]/u.test(e))}function ly(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const uy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cy(e,t,n,r){ly(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(uy.has(i)?i:lc(i),t.attrs[i])}function dy(e,{layout:t,layoutId:n}){return _n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!rs[e]||e==="opacity")}function hc(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Ce(i[s])||t.style&&Ce(t.style[s])||dy(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function fy(e,t,n){const r=hc(e,t,n);for(const i in e)if(Ce(e[i])||Ce(t[i])){const o=_i.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function cP(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function dP({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:fP(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const py=e=>(t,n)=>{const r=w.useContext(bs),i=w.useContext(cc),o=()=>dP(e,t,r,i);return n?o():cP(o)};function fP(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Po(o[f]);let{initial:s,animate:a}=e;const l=Ms(e),u=ay(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!As(d)){const f=Array.isArray(d)?d:[d];for(let m=0;m({style:{},transform:{},transformOrigin:{},vars:{}}),hy=()=>({...mc(),attrs:{}}),my=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hP=_i.length;function mP(e,t,n){let r="",i=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",wP={useVisualState:py({scrapeMotionValuesFromProps:fy,createRenderState:hy,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{yc(n,r,vc(t.tagName),e.transformTemplate),cy(t,n)})}})},SP={useVisualState:py({scrapeMotionValuesFromProps:hc,createRenderState:mc})};function gy(e,t,n){for(const r in t)!Ce(t[r])&&!dy(r,n)&&(e[r]=t[r])}function TP({transformTemplate:e},t){return w.useMemo(()=>{const n=mc();return gc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EP(e,t){const n=e.style||{},r={};return gy(r,n,e),Object.assign(r,TP(e,t)),r}function PP(e,t){const n={},r=EP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const CP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function is(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CP.has(e)}let yy=e=>!is(e);function kP(e){e&&(yy=t=>t.startsWith("on")?!is(t):e(t))}try{kP(require("@emotion/is-prop-valid").default)}catch{}function AP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(yy(i)||n===!0&&is(i)||!t&&!is(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function RP(e,t,n,r){const i=w.useMemo(()=>{const o=hy();return yc(o,t,vc(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};gy(o,e.style,e),i.style={...o,...i.style}}return i}function NP(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(pc(n)?RP:PP)(r,o,s,n),u=AP(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=w.useMemo(()=>Ce(d)?d.get():d,[d]);return w.createElement(n,{...c,children:f})}}function bP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...pc(r)?wP:SP,preloadedFeatures:e,useRender:NP(i),createVisualElement:t,Component:r};return oP(s)}}const Fl={current:null},vy={current:!1};function MP(){if(vy.current=!0,!!fc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fl.current=e.matches;e.addListener(t),t()}else Fl.current=!1}function LP(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Ce(i))e.addValue(r,i);else if(Ce(o))e.addValue(r,Ai(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const op=new WeakMap,jP=[...lg,Ee,an],_P=e=>jP.find(ag(e)),sp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class OP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=xt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),vy.current||MP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){op.delete(this.current),this.projection&&this.projection.unmount(),sn(this.notifyUpdate),sn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_n.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in xr){const n=xr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(rg(i)||ng(i))?i=parseFloat(i):!_P(i)&&an.test(n)&&(i=gg(t,n)),this.setBaseTarget(t,Ce(i)?i.get():i)),Ce(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Bu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ce(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ac),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xy extends OP{constructor(){super(...arguments),this.KeyframeResolver=yg}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function DP(e){return window.getComputedStyle(e)}class IP extends xy{constructor(){super(...arguments),this.type="html",this.renderInstance=ly}readValueFromInstance(t,n){if(_n.has(n)){const r=Zu(n);return r&&r.default||0}else{const r=DP(t),i=(og(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hg(t,n)}build(t,n,r){gc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return hc(t,n,r)}}class VP extends xy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_n.has(n)){const r=Zu(n);return r&&r.default||0}return n=uy.has(n)?n:lc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fy(t,n,r)}build(t,n,r){yc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){cy(t,n,r,i)}mount(t){this.isSVGTag=vc(t.tagName),super.mount(t)}}const FP=(e,t)=>pc(e)?new VP(t):new IP(t,{allowProjection:e!==w.Fragment}),zP=bP({...ST,...XE,...VE,...QE},FP),me=v1(zP),BP={some:0,all:1};function UP(e,t,{root:n,margin:r,amount:i="some"}={}){const o=Og(e),s=new WeakMap,a=u=>{u.forEach(c=>{const d=s.get(c.target);if(c.isIntersecting!==!!d)if(c.isIntersecting){const f=t(c);typeof f=="function"?s.set(c.target,f):l.unobserve(c.target)}else d&&(d(c),s.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:BP[i]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function $P(e,{root:t,margin:n,amount:r,once:i=!1}={}){const[o,s]=w.useState(!1);return w.useEffect(()=>{if(!e.current||i&&o)return;const a=()=>(s(!0),i?void 0:()=>s(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return UP(e.current,a,l)},[t,e,n,i,r]),o}const WP=()=>S.jsxs("section",{className:"relative h-screen w-full overflow-hidden flex items-center justify-center",children:[S.jsxs("div",{className:"absolute inset-0 z-0",children:[S.jsx("img",{src:"https://images.unsplash.com/photo-1643877107082-8ee9da17c090",alt:"Modern financial technology and logistics visualization",className:"w-full h-full object-cover"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-navy/95 via-navy/90 to-navy-dark/95"})]}),S.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[S.jsx(me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},children:S.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold mb-6 text-shadow",children:[S.jsx("span",{className:"gradient-text",children:"Unionaris"}),S.jsx("br",{}),S.jsx("span",{className:"text-white",children:"Your Global Financial & Logistics Partner"})]})}),S.jsx(me.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2,ease:"easeOut"},className:"text-lg sm:text-xl md:text-2xl text-gray-300 mb-12 max-w-3xl mx-auto",children:"Empowering businesses worldwide with seamless banking, intelligent investments, and reliable shipping solutions."}),S.jsxs(me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4,ease:"easeOut"},className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[S.jsxs("a",{href:"https://bank.unionaris.com",target:"_blank",rel:"noopener noreferrer",className:"group relative px-8 py-4 bg-cyan text-white font-semibold rounded-lg overflow-hidden transition-all-smooth hover:scale-105 hover:shadow-2xl hover:shadow-cyan/50 w-full sm:w-auto",children:[S.jsx("span",{className:"relative z-10",children:"Banking"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-cyan-dark to-cyan opacity-0 group-hover:opacity-100 transition-opacity"})]}),S.jsxs("a",{href:"https://invest.unionaris.com",target:"_blank",rel:"noopener noreferrer",className:"group relative px-8 py-4 bg-cyan text-white font-semibold rounded-lg overflow-hidden transition-all-smooth hover:scale-105 hover:shadow-2xl hover:shadow-cyan/50 w-full sm:w-auto",children:[S.jsx("span",{className:"relative z-10",children:"Investments"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-cyan-dark to-cyan opacity-0 group-hover:opacity-100 transition-opacity"})]}),S.jsxs("a",{href:"https://ship.unionaris.com",target:"_blank",rel:"noopener noreferrer",className:"group relative px-8 py-4 bg-cyan text-white font-semibold rounded-lg overflow-hidden transition-all-smooth hover:scale-105 hover:shadow-2xl hover:shadow-cyan/50 w-full sm:w-auto",children:[S.jsx("span",{className:"relative z-10",children:"Shipping"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-cyan-dark to-cyan opacity-0 group-hover:opacity-100 transition-opacity"})]})]})]}),S.jsx(me.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:1},className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-10",children:S.jsx(me.div,{animate:{y:[0,10,0]},transition:{duration:1.5,repeat:1/0},className:"w-6 h-10 border-2 border-cyan rounded-full flex items-start justify-center p-2",children:S.jsx("div",{className:"w-1 h-2 bg-cyan rounded-full"})})})]});/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const HP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var KP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const GP=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>w.createElement("svg",{ref:l,...KP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wy("lucide",i),...a},[...s.map(([u,c])=>w.createElement(u,c)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const On=(e,t)=>{const n=w.forwardRef(({className:r,...i},o)=>w.createElement(GP,{ref:o,iconNode:t,className:wy(`lucide-${HP(e)}`,r),...i}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const YP=On("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sy=On("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const XP=On("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QP=On("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qP=On("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ZP=On("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JP=On("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),eC=[{icon:YP,title:"Banking Solutions",description:"Secure, fast, and reliable banking services tailored for modern businesses. Experience seamless transactions, multi-currency accounts, and 24/7 global access.",color:"cyan"},{icon:ZP,title:"Investment Management",description:"Maximize your returns with our expert investment strategies. From portfolio diversification to risk management, we help you achieve your financial goals.",color:"gold"},{icon:QP,title:"Shipping & Tracking",description:"Track your shipments in real-time across the globe. Our advanced logistics network ensures your goods arrive safely and on time, every time.",color:"cyan"}],tC=()=>S.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-navy-dark to-navy",children:S.jsxs("div",{className:"max-w-7xl mx-auto",children:[S.jsxs(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-16",children:[S.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4 gradient-text",children:"Our Services"}),S.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Comprehensive solutions designed to power your business forward"})]}),S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:eC.map((e,t)=>S.jsxs(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:t*.1},whileHover:{scale:1.05,y:-10},className:"group relative bg-navy-light rounded-xl p-8 shadow-lg hover:shadow-2xl transition-all-smooth border-2 border-transparent hover:border-cyan",children:[S.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-cyan/10 to-gold/10 opacity-0 group-hover:opacity-100 transition-opacity rounded-xl"}),S.jsxs("div",{className:"relative z-10",children:[S.jsx("div",{className:`w-16 h-16 rounded-lg bg-gradient-to-br ${e.color==="cyan"?"from-cyan to-cyan-dark":"from-gold to-gold-dark"} flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:S.jsx(e.icon,{className:"w-8 h-8 text-white"})}),S.jsx("h3",{className:"text-2xl font-bold mb-4 text-white group-hover:text-cyan transition-colors",children:e.title}),S.jsx("p",{className:"text-gray-400 leading-relaxed",children:e.description}),S.jsx("div",{className:`mt-6 h-1 w-0 group-hover:w-full transition-all duration-500 bg-gradient-to-r ${e.color==="cyan"?"from-cyan to-cyan-dark":"from-gold to-gold-dark"}`})]})]},t))})]})}),ap=({end:e,duration:t=2e3,suffix:n=""})=>{const[r,i]=w.useState(0),o=w.useRef(null),s=$P(o,{once:!0,margin:"-100px"});return w.useEffect(()=>{if(!s)return;let a,l;const u=c=>{a||(a=c);const d=Math.min((c-a)/t,1);i(Math.floor(d*e)),d<1&&(l=requestAnimationFrame(u))};return l=requestAnimationFrame(u),()=>{l&&cancelAnimationFrame(l)}},[s,e,t]),S.jsxs("span",{ref:o,children:[r.toLocaleString(),n]})},nC=()=>{const e=[{value:12340,suffix:"+",label:"Users Served"},{value:5,suffix:"M+",label:"Transactions Processed"},{value:4500,suffix:"+",label:"Shipments Tracked"}];return S.jsxs("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-navy to-navy-light relative overflow-hidden",children:[S.jsx("div",{className:"absolute top-0 left-0 w-64 h-64 bg-cyan/5 rounded-full blur-3xl"}),S.jsx("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-gold/5 rounded-full blur-3xl"}),S.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[S.jsxs(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-16",children:[S.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4 gradient-text",children:"Our Impact"}),S.jsx("p",{className:"text-gray-400 text-lg",children:"Numbers that speak for themselves"})]}),S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:e.map((t,n)=>S.jsxs(me.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:n*.1},className:"text-center p-8 rounded-xl bg-navy-light/50 backdrop-blur-sm border border-cyan/20 hover:border-cyan/50 transition-all-smooth",children:[S.jsx("div",{className:"text-5xl md:text-6xl font-bold mb-2 text-cyan",children:t.suffix==="M+"?S.jsxs(S.Fragment,{children:["$",S.jsx(ap,{end:t.value}),t.suffix.replace("+",""),S.jsx("span",{className:"text-cyan",children:"+"})]}):S.jsx(ap,{end:t.value,suffix:t.suffix})}),S.jsx("div",{className:"text-xl text-gold font-medium",children:t.label})]},n))})]})]})},rC=()=>S.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-navy-light to-navy-dark",children:S.jsxs("div",{className:"max-w-4xl mx-auto",children:[S.jsx(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-12",children:S.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 gradient-text",children:"About Unionaris"})}),S.jsxs(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.2},className:"space-y-6 text-gray-300 text-lg leading-relaxed",children:[S.jsxs("p",{children:["At ",S.jsx("span",{className:"gradient-text-cyan font-semibold",children:"Unionaris"}),", we are committed to revolutionizing the way businesses interact with global finance and logistics. Founded on the principles of ",S.jsx("span",{className:"text-gold font-semibold",children:"trust"}),", ",S.jsx("span",{className:"text-gold font-semibold",children:"innovation"}),", and ",S.jsx("span",{className:"text-gold font-semibold",children:"global reach"}),", we provide integrated solutions that empower organizations to thrive in an interconnected world."]}),S.jsx("p",{children:"Our comprehensive suite of services spans three core pillars: cutting-edge banking solutions that ensure secure and swift financial transactions, intelligent investment management that maximizes returns while managing risk, and reliable shipping and tracking services that keep your supply chain moving seamlessly."}),S.jsx("p",{children:"With a presence across multiple continents and a team of industry experts, Unionaris delivers personalized service backed by advanced technology. We understand that every business is unique, which is why we tailor our solutions to meet your specific needs, whether you're a startup looking to scale or an established enterprise seeking to optimize operations."}),S.jsxs(me.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0,margin:"-100px"},transition:{duration:.8,delay:.4},className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-12 pt-12 border-t border-cyan/20",children:[S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-3xl font-bold gradient-text-cyan mb-2",children:"Trust"}),S.jsx("p",{className:"text-gray-400 text-base",children:"Building lasting relationships through transparency and reliability"})]}),S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-3xl font-bold gradient-text-cyan mb-2",children:"Innovation"}),S.jsx("p",{className:"text-gray-400 text-base",children:"Leveraging cutting-edge technology to stay ahead of the curve"})]}),S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-3xl font-bold gradient-text-cyan mb-2",children:"Global Reach"}),S.jsx("p",{className:"text-gray-400 text-base",children:"Serving clients worldwide with local expertise and global capabilities"})]})]})]})]})}),iC=1;let Sa=0;function oC(){return Sa=(Sa+1)%Number.MAX_VALUE,Sa.toString()}const Re={state:{toasts:[]},listeners:[],getState:()=>Re.state,setState:e=>{typeof e=="function"?Re.state=e(Re.state):Re.state={...Re.state,...e},Re.listeners.forEach(t=>t(Re.state))},subscribe:e=>(Re.listeners.push(e),()=>{Re.listeners=Re.listeners.filter(t=>t!==e)})},sC=({...e})=>{const t=oC(),n=i=>Re.setState(o=>({...o,toasts:o.toasts.map(s=>s.id===t?{...s,...i}:s)})),r=()=>Re.setState(i=>({...i,toasts:i.toasts.filter(o=>o.id!==t)}));return Re.setState(i=>({...i,toasts:[{...e,id:t,dismiss:r},...i.toasts].slice(0,iC)})),{id:t,dismiss:r,update:n}};function Ty(){const[e,t]=w.useState(Re.getState());return w.useEffect(()=>Re.subscribe(r=>{t(r)}),[]),w.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const i=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(i)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:sC,toasts:e.toasts}}const aC=()=>{const[e,t]=w.useState(""),[n,r]=w.useState(!1),{toast:i}=Ty(),o=a=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a),s=async a=>{if(a.preventDefault(),!e.trim()){i({title:"Email Required",description:"Please enter your email address.",variant:"destructive"});return}if(!o(e)){i({title:"Invalid Email",description:"Please enter a valid email address.",variant:"destructive"});return}r(!0),setTimeout(()=>{i({title:"Successfully Subscribed!",description:"Thank you for subscribing to our newsletter."}),t(""),r(!1)},1e3)};return S.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-navy-dark to-navy",children:S.jsx("div",{className:"max-w-4xl mx-auto",children:S.jsxs(me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center",children:[S.jsx("div",{className:"flex items-center justify-center mb-6",children:S.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-cyan to-cyan-dark flex items-center justify-center",children:S.jsx(Sy,{className:"w-8 h-8 text-white"})})}),S.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4 gradient-text",children:"Stay Updated"}),S.jsx("p",{className:"text-gray-400 text-lg mb-8",children:"Subscribe to our newsletter for the latest updates, insights, and exclusive offers."}),S.jsx("form",{onSubmit:s,className:"max-w-md mx-auto",children:S.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[S.jsx("input",{type:"email",placeholder:"Enter your email",value:e,onChange:a=>t(a.target.value),className:"flex-1 px-6 py-4 rounded-lg bg-navy-light border-2 border-cyan/30 focus:border-cyan focus:outline-none text-white placeholder-gray-500 transition-all-smooth",disabled:n}),S.jsx(me.button,{type:"submit",whileHover:{scale:1.05},whileTap:{scale:.95},disabled:n,className:"px-8 py-4 bg-cyan text-white font-semibold rounded-lg hover:bg-cyan-dark transition-all-smooth disabled:opacity-50 disabled:cursor-not-allowed shadow-lg hover:shadow-cyan/50",children:n?"Subscribing...":"Subscribe"})]})}),S.jsx("p",{className:"text-gray-500 text-sm mt-4",children:"We respect your privacy. Unsubscribe at any time."})]})})})},lC=()=>{const e=new Date().getFullYear(),t={services:[{name:"Banking",url:"https://bank.unionaris.com"},{name:"Investments",url:"https://invest.unionaris.com"},{name:"Shipping",url:"https://ship.unionaris.com"}],legal:[{name:"Privacy Policy",url:"#"},{name:"Terms of Service",url:"#"},{name:"Cookie Policy",url:"#"}]},n=[{icon:Sy,text:"contact@unionaris.com",href:"mailto:contact@unionaris.com"},{icon:qP,text:"+1 (555) 123-4567",href:"tel:+15551234567"},{icon:XP,text:"123 Financial District, New York, NY 10004"}];return S.jsx("footer",{className:"bg-navy-dark border-t border-cyan/20 py-12 px-4 sm:px-6 lg:px-8",children:S.jsxs("div",{className:"max-w-7xl mx-auto",children:[S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-8",children:[S.jsxs(me.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[S.jsx("h3",{className:"text-cyan text-lg font-semibold mb-4",children:"Services"}),S.jsx("ul",{className:"space-y-2",children:t.services.map((r,i)=>S.jsx("li",{children:S.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-cyan transition-colors",children:r.name})},i))})]}),S.jsxs(me.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},children:[S.jsx("h3",{className:"text-cyan text-lg font-semibold mb-4",children:"Legal"}),S.jsx("ul",{className:"space-y-2",children:t.legal.map((r,i)=>S.jsx("li",{children:S.jsx("a",{href:r.url,className:"text-gray-400 hover:text-cyan transition-colors",children:r.name})},i))})]}),S.jsxs(me.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},children:[S.jsx("h3",{className:"text-cyan text-lg font-semibold mb-4",children:"Contact"}),S.jsx("ul",{className:"space-y-3",children:n.map((r,i)=>S.jsxs("li",{className:"flex items-start gap-3",children:[S.jsx(r.icon,{className:"w-5 h-5 text-cyan mt-0.5 flex-shrink-0"}),r.href?S.jsx("a",{href:r.href,className:"text-gray-400 hover:text-cyan transition-colors",children:r.text}):S.jsx("span",{className:"text-gray-400",children:r.text})]},i))})]})]}),S.jsx(me.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"pt-8 border-t border-cyan/20",children:S.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4",children:[S.jsxs("p",{className:"text-gray-400 text-sm text-center md:text-left",children:["© ",e," Unionaris. All rights reserved."]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-sm text-gray-400",children:"Powered by"}),S.jsx("span",{className:"gradient-text font-semibold",children:"Unionaris Technology"})]})]})})]})})},uC=()=>S.jsxs(S.Fragment,{children:[S.jsxs(El,{children:[S.jsx("title",{children:"Unionaris - Your Global Financial & Logistics Partner"}),S.jsx("meta",{name:"description",content:"Empowering businesses worldwide with seamless banking, intelligent investments, and reliable shipping solutions. Join over 12,340+ satisfied clients with Unionaris."})]}),S.jsxs("div",{className:"min-h-screen bg-navy",children:[S.jsx(WP,{}),S.jsx(tC,{}),S.jsx(nC,{}),S.jsx(rC,{}),S.jsx(aC,{}),S.jsx(lC,{})]})]});function Ey(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=fC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(xc);return a[0]===""&&a.length!==1&&a.shift(),Cy(a,t)||dC(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Cy=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Cy(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(xc);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},lp=/^\[(.+)\]$/,dC=e=>{if(lp.test(e)){const t=lp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return hC(Object.entries(e.classGroups),n).forEach(([o,s])=>{zl(s,r,o,t)}),r},zl=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:up(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(pC(i)){zl(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{zl(s,up(t,o),n,r)})})},up=(e,t)=>{let n=e;return t.split(xc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pC=e=>e.isThemeGetter,hC=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e,mC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},ky="!",gC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let x=0;xc?d-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:s}):s},yC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vC=e=>({cache:mC(e.cacheSize),parseClassName:gC(e),...cC(e)}),xC=/\s+/,wC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(xC);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let v=!!m,y=r(v?f.substring(0,m):f);if(!y){if(!v){a=u+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=u+(a.length>0?" "+a:a);continue}v=!1}const x=yC(c).join(":"),h=d?x+ky:x,p=h+y;if(o.includes(p))continue;o.push(p);const g=i(y,v);for(let T=0;T0?" "+a:a)}return a};function SC(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=vC(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=wC(l,n);return i(l,c),c}return function(){return o(SC.apply(null,arguments))}}const K=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ry=/^\[(?:([a-z-]+):)?(.+)\]$/i,EC=/^\d+\/\d+$/,PC=new Set(["px","full","screen"]),CC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,AC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,RC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Et=e=>ur(e)||PC.has(e)||EC.test(e),Ft=e=>Cr(e,"length",IC),ur=e=>!!e&&!Number.isNaN(Number(e)),Ta=e=>Cr(e,"number",ur),Vr=e=>!!e&&Number.isInteger(Number(e)),bC=e=>e.endsWith("%")&&ur(e.slice(0,-1)),V=e=>Ry.test(e),zt=e=>CC.test(e),MC=new Set(["length","size","percentage"]),LC=e=>Cr(e,MC,Ny),jC=e=>Cr(e,"position",Ny),_C=new Set(["image","url"]),OC=e=>Cr(e,_C,FC),DC=e=>Cr(e,"",VC),Fr=()=>!0,Cr=(e,t,n)=>{const r=Ry.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},IC=e=>kC.test(e)&&!AC.test(e),Ny=()=>!1,VC=e=>RC.test(e),FC=e=>NC.test(e),zC=()=>{const e=K("colors"),t=K("spacing"),n=K("blur"),r=K("brightness"),i=K("borderColor"),o=K("borderRadius"),s=K("borderSpacing"),a=K("borderWidth"),l=K("contrast"),u=K("grayscale"),c=K("hueRotate"),d=K("invert"),f=K("gap"),m=K("gradientColorStops"),v=K("gradientColorStopPositions"),y=K("inset"),x=K("margin"),h=K("opacity"),p=K("padding"),g=K("saturate"),T=K("scale"),E=K("sepia"),k=K("skew"),P=K("space"),C=K("translate"),L=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",V,t],I=()=>[V,t],Ae=()=>["",Et,Ft],O=()=>["auto",ur,V],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",V],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[ur,V];return{cacheSize:500,separator:":",theme:{colors:[Fr],spacing:[Et,Ft],blur:["none","",zt,V],brightness:z(),borderColor:[e],borderRadius:["none","","full",zt,V],borderSpacing:I(),borderWidth:Ae(),contrast:z(),grayscale:M(),hueRotate:z(),invert:M(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[bC,Ft],inset:U(),margin:U(),opacity:z(),padding:I(),saturate:z(),scale:z(),sepia:M(),skew:z(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[zt]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),V]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vr,V]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Vr,V]}],"grid-cols":[{"grid-cols":[Fr]}],"col-start-end":[{col:["auto",{span:["full",Vr,V]},V]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Fr]}],"row-start-end":[{row:["auto",{span:[Vr,V]},V]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[zt]},zt]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zt,Ft]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ta]}],"font-family":[{font:[Fr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",ur,Ta]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Et,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Et,Ft]}],"underline-offset":[{"underline-offset":["auto",Et,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),jC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",LC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},OC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:pe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[Et,V]}],"outline-w":[{outline:[Et,Ft]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Et,Ft]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zt,DC]}],"shadow-color":[{shadow:[Fr]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",zt,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Vr,V]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Et,Ft,Ta]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},BC=TC(zC);function kr(...e){return BC(Py(e))}function Be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function cp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function by(...e){return t=>{let n=!1;const r=e.map(i=>{const o=cp(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{var h;const{scope:f,children:m,...v}=d,y=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,x=w.useMemo(()=>v,Object.values(v));return S.jsx(y.Provider,{value:x,children:m})};u.displayName=o+"Provider";function c(d,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,v=w.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>w.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,UC(i,...t)]}function UC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(o)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var os=w.forwardRef((e,t)=>{const{children:n,...r}=e,i=w.Children.toArray(n),o=i.find(WC);if(o){const s=o.props.children,a=i.map(l=>l===o?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:l);return S.jsx(Bl,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,a):null})}return S.jsx(Bl,{...r,ref:t,children:n})});os.displayName="Slot";var Bl=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const i=KC(n);return w.cloneElement(n,{...HC(r,n.props),ref:t?by(t,i):i})}return w.Children.count(n)>1?w.Children.only(null):null});Bl.displayName="SlotClone";var $C=({children:e})=>S.jsx(S.Fragment,{children:e});function WC(e){return w.isValidElement(e)&&e.type===$C}function HC(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function KC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function GC(e){const t=e+"CollectionProvider",[n,r]=My(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:v,children:y}=m,x=ce.useRef(null),h=ce.useRef(new Map).current;return S.jsx(i,{scope:v,itemMap:h,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=ce.forwardRef((m,v)=>{const{scope:y,children:x}=m,h=o(a,y),p=Mn(v,h.collectionRef);return S.jsx(os,{ref:p,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ce.forwardRef((m,v)=>{const{scope:y,children:x,...h}=m,p=ce.useRef(null),g=Mn(v,p),T=o(u,y);return ce.useEffect(()=>(T.itemMap.set(p,{ref:p,...h}),()=>void T.itemMap.delete(p))),S.jsx(os,{[c]:"",ref:g,children:x})});d.displayName=u;function f(m){const v=o(e+"CollectionConsumer",m);return ce.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((T,E)=>h.indexOf(T.ref.current)-h.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},f,r]}var YC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wt=YC.reduce((e,t)=>{const n=w.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?os:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ly(e,t){e&&Es.flushSync(()=>e.dispatchEvent(t))}function Dt(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function XC(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var QC="DismissableLayer",Ul="dismissableLayer.update",qC="dismissableLayer.pointerDownOutside",ZC="dismissableLayer.focusOutside",dp,jy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_y=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(jy),[c,d]=w.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=w.useState({}),v=Mn(t,P=>d(P)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=c?y.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,T=p>=h,E=ek(P=>{const C=P.target,L=[...u.branches].some(b=>b.contains(C));!T||L||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},f),k=tk(P=>{const C=P.target;[...u.branches].some(b=>b.contains(C))||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},f);return XC(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),fp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=dp)}},[c,f,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),fp())},[c,u]),w.useEffect(()=>{const P=()=>m({});return document.addEventListener(Ul,P),()=>document.removeEventListener(Ul,P)},[]),S.jsx(wt.div,{...l,ref:v,style:{pointerEvents:g?T?"auto":"none":void 0,...e.style},onFocusCapture:Be(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Be(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Be(e.onPointerDownCapture,E.onPointerDownCapture)})});_y.displayName=QC;var JC="DismissableLayerBranch",Oy=w.forwardRef((e,t)=>{const n=w.useContext(jy),r=w.useRef(null),i=Mn(t,r);return w.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),S.jsx(wt.div,{...e,ref:i})});Oy.displayName=JC;function ek(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Dy(qC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tk(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=w.useRef(!1);return w.useEffect(()=>{const i=o=>{o.target&&!r.current&&Dy(ZC,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fp(){const e=new CustomEvent(Ul);document.dispatchEvent(e)}function Dy(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ly(i,o):i.dispatchEvent(o)}var nk=_y,rk=Oy,ss=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},ik="Portal",Iy=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=w.useState(!1);ss(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Dx.createPortal(S.jsx(wt.div,{...r,ref:t}),s):null});Iy.displayName=ik;function ok(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Vy=e=>{const{present:t,children:n}=e,r=sk(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),o=Mn(r.ref,ak(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:o}):null};Vy.displayName="Presence";function sk(e){const[t,n]=w.useState(),r=w.useRef({}),i=w.useRef(e),o=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=ok(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=so(r.current);o.current=a==="mounted"?u:"none"},[a]),ss(()=>{const u=r.current,c=i.current;if(c!==e){const f=o.current,m=so(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ss(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const y=so(r.current).includes(m.animationName);if(m.target===t&&y&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(o.current=so(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function so(e){return(e==null?void 0:e.animationName)||"none"}function ak(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function lk({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=uk({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Dt(n),l=w.useCallback(u=>{if(o){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else i(u)},[o,e,i,a]);return[s,l]}function uk({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,i=w.useRef(r),o=Dt(t);return w.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var ck="VisuallyHidden",wc=w.forwardRef((e,t)=>S.jsx(wt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));wc.displayName=ck;var Sc="ToastProvider",[Tc,dk,fk]=GC("Toast"),[Fy,Ik]=My("Toast",[fk]),[pk,Ls]=Fy(Sc),zy=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Sc}\`. Expected non-empty \`string\`.`),S.jsx(Tc.Provider,{scope:t,children:S.jsx(pk,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(m=>m+1),[]),onToastRemove:w.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};zy.displayName=Sc;var By="ToastViewport",hk=["F8"],$l="toast.viewportPause",Wl="toast.viewportResume",Uy=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hk,label:i="Notifications ({hotkey})",...o}=e,s=Ls(By,n),a=dk(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=Mn(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;w.useEffect(()=>{const x=h=>{var g;r.length!==0&&r.every(T=>h[T]||h.code===T)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,h=d.current;if(v&&x&&h){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent($l);h.dispatchEvent(k),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(Wl);h.dispatchEvent(k),s.isClosePausedRef.current=!1}},T=k=>{!x.contains(k.relatedTarget)&&g()},E=()=>{x.contains(document.activeElement)||g()};return x.addEventListener("focusin",p),x.addEventListener("focusout",T),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",T),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[v,s.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const p=a().map(g=>{const T=g.ref.current,E=[T,...Ak(T)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const x=d.current;if(x){const h=p=>{var E,k,P;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const C=document.activeElement,L=p.shiftKey;if(p.target===x&&L){(E=u.current)==null||E.focus();return}const I=y({tabbingDirection:L?"backwards":"forwards"}),Ae=I.findIndex(O=>O===C);Ea(I.slice(Ae+1))?p.preventDefault():L?(k=u.current)==null||k.focus():(P=c.current)==null||P.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,y]),S.jsxs(rk,{ref:l,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&S.jsx(Hl,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});Ea(x)}}),S.jsx(Tc.Slot,{scope:n,children:S.jsx(wt.ol,{tabIndex:-1,...o,ref:f})}),v&&S.jsx(Hl,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});Ea(x)}})]})});Uy.displayName=By;var $y="ToastFocusProxy",Hl=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=Ls($y,n);return S.jsx(wc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Hl.displayName=$y;var js="Toast",mk="toast.swipeStart",gk="toast.swipeMove",yk="toast.swipeCancel",vk="toast.swipeEnd",Wy=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[a=!0,l]=lk({prop:r,defaultProp:i,onChange:o});return S.jsx(Vy,{present:n||a,children:S.jsx(Sk,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Dt(e.onPause),onResume:Dt(e.onResume),onSwipeStart:Be(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Be(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Be(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Be(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Wy.displayName=js;var[xk,wk]=Fy(js,{onClose(){}}),Sk=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:m,...v}=e,y=Ls(js,n),[x,h]=w.useState(null),p=Mn(t,O=>h(O)),g=w.useRef(null),T=w.useRef(null),E=i||y.duration,k=w.useRef(0),P=w.useRef(E),C=w.useRef(0),{onToastAdd:L,onToastRemove:b}=y,U=Dt(()=>{var fe;(x==null?void 0:x.contains(document.activeElement))&&((fe=y.viewport)==null||fe.focus()),s()}),I=w.useCallback(O=>{!O||O===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(U,O))},[U]);w.useEffect(()=>{const O=y.viewport;if(O){const fe=()=>{I(P.current),u==null||u()},pe=()=>{const W=new Date().getTime()-k.current;P.current=P.current-W,window.clearTimeout(C.current),l==null||l()};return O.addEventListener($l,pe),O.addEventListener(Wl,fe),()=>{O.removeEventListener($l,pe),O.removeEventListener(Wl,fe)}}},[y.viewport,E,l,u,I]),w.useEffect(()=>{o&&!y.isClosePausedRef.current&&I(E)},[o,E,y.isClosePausedRef,I]),w.useEffect(()=>(L(),()=>b()),[L,b]);const Ae=w.useMemo(()=>x?qy(x):null,[x]);return y.viewport?S.jsxs(S.Fragment,{children:[Ae&&S.jsx(Tk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Ae}),S.jsx(xk,{scope:n,onClose:U,children:Es.createPortal(S.jsx(Tc.ItemSlot,{scope:n,children:S.jsx(nk,{asChild:!0,onEscapeKeyDown:Be(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||U(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(wt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Be(e.onKeyDown,O=>{O.key==="Escape"&&(a==null||a(O.nativeEvent),O.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Be(e.onPointerDown,O=>{O.button===0&&(g.current={x:O.clientX,y:O.clientY})}),onPointerMove:Be(e.onPointerMove,O=>{if(!g.current)return;const fe=O.clientX-g.current.x,pe=O.clientY-g.current.y,W=!!T.current,R=["left","right"].includes(y.swipeDirection),M=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,_=R?M(0,fe):0,z=R?0:M(0,pe),re=O.pointerType==="touch"?10:2,St={x:_,y:z},ft={originalEvent:O,delta:St};W?(T.current=St,ao(gk,d,ft,{discrete:!1})):pp(St,y.swipeDirection,re)?(T.current=St,ao(mk,c,ft,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(fe)>re||Math.abs(pe)>re)&&(g.current=null)}),onPointerUp:Be(e.onPointerUp,O=>{const fe=T.current,pe=O.target;if(pe.hasPointerCapture(O.pointerId)&&pe.releasePointerCapture(O.pointerId),T.current=null,g.current=null,fe){const W=O.currentTarget,R={originalEvent:O,delta:fe};pp(fe,y.swipeDirection,y.swipeThreshold)?ao(vk,m,R,{discrete:!0}):ao(yk,f,R,{discrete:!0}),W.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Tk=e=>{const{__scopeToast:t,children:n,...r}=e,i=Ls(js,t),[o,s]=w.useState(!1),[a,l]=w.useState(!1);return Ck(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:S.jsx(Iy,{asChild:!0,children:S.jsx(wc,{...r,children:o&&S.jsxs(S.Fragment,{children:[i.label," ",n]})})})},Ek="ToastTitle",Hy=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(wt.div,{...r,ref:t})});Hy.displayName=Ek;var Pk="ToastDescription",Ky=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(wt.div,{...r,ref:t})});Ky.displayName=Pk;var Gy="ToastAction",Yy=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(Qy,{altText:n,asChild:!0,children:S.jsx(Ec,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Gy}\`. Expected non-empty \`string\`.`),null)});Yy.displayName=Gy;var Xy="ToastClose",Ec=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=wk(Xy,n);return S.jsx(Qy,{asChild:!0,children:S.jsx(wt.button,{type:"button",...r,ref:t,onClick:Be(e.onClick,i.onClose)})})});Ec.displayName=Xy;var Qy=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return S.jsx(wt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function qy(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),kk(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...qy(r))}}),t}function ao(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ly(i,o):i.dispatchEvent(o)}var pp=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function Ck(e=()=>{}){const t=Dt(e);ss(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function kk(e){return e.nodeType===e.ELEMENT_NODE}function Ak(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ea(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Rk=zy,Zy=Uy,Jy=Wy,ev=Hy,tv=Ky,nv=Yy,rv=Ec;const hp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mp=Py,Nk=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return mp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=o==null?void 0:o[u];if(c===null)return null;const f=hp(c)||hp(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(v=>{let[y,x]=v;return Array.isArray(x)?x.includes({...o,...a}[y]):{...o,...a}[y]===x})?[...u,d,f]:u},[]);return mp(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},bk=Rk,iv=ce.forwardRef(({className:e,...t},n)=>S.jsx(Zy,{ref:n,className:kr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));iv.displayName=Zy.displayName;const Mk=Nk("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ov=ce.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(Jy,{ref:r,className:kr(Mk({variant:t}),e),...n}));ov.displayName=Jy.displayName;const Lk=ce.forwardRef(({className:e,...t},n)=>S.jsx(nv,{ref:n,className:kr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Lk.displayName=nv.displayName;const sv=ce.forwardRef(({className:e,...t},n)=>S.jsx(rv,{ref:n,className:kr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(JP,{className:"h-4 w-4"})}));sv.displayName=rv.displayName;const av=ce.forwardRef(({className:e,...t},n)=>S.jsx(ev,{ref:n,className:kr("text-sm font-semibold",e),...t}));av.displayName=ev.displayName;const lv=ce.forwardRef(({className:e,...t},n)=>S.jsx(tv,{ref:n,className:kr("text-sm opacity-90",e),...t}));lv.displayName=tv.displayName;function jk(){const{toasts:e}=Ty();return S.jsxs(bk,{children:[e.map(({id:t,title:n,description:r,action:i,...o})=>S.jsxs(ov,{...o,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(av,{children:n}),r&&S.jsx(lv,{children:r})]}),i,S.jsx(sv,{})]},t)),S.jsx(iv,{})]})}function _k(){return S.jsxs(Ew,{children:[S.jsx(ww,{children:S.jsx(Dm,{path:"/",element:S.jsx(uC,{})})}),S.jsx(jk,{})]})}Pa.createRoot(document.getElementById("root")).render(S.jsx(_k,{}));